Completed LDAP functionality