Fixed a Ldap connection problem