Fix for ldap connection