Replace ldap_close with objunref