completed the LDAP part