fix ldap stuff