clean up ldap resource class