bugfixes in ldap