Improvements to Ldap Repository.