--- ldapdata.module.orig 2006-12-04 16:50:07.000000000 -0500 +++ ldapdata.module 2006-12-05 19:12:43.993241353 -0500 @@ -395,6 +395,14 @@ return; } + $binddn = variable_get('ldap_search_as_dn', ''); + if ($binddn) + { + $bindpass = variable_get('ldap_search_as_pass', ''); + $ldap->disconnect(); + $ldap->connect($binddn, $bindpass); + } + $entry = $ldap->retrieveAttributes($user->ldap_dn); $ldap->disconnect(); @@ -681,4 +689,4 @@ return $ret; } -?> \ No newline at end of file +?>