Corrected an Ldap helper method