small ldap improvements