Changed the function __ldapConnect