ldap bug fixed