Commit b6323e66bf8ef0576a4af11a2b7e5577a39954b8

Authored by Frederik Lindenaar
1 parent 44c83c64

fixed ldap_search_dn for OpenLDAP/OpenDirectory (use objectClass instead of non-…

…POSIX objectCategory)
Showing 1 changed file with 1 additions and 1 deletions
class.ldap.php
@@ -167,7 +167,7 @@ class Ldap { @@ -167,7 +167,7 @@ class Ldap {
167 // return userdn (and username) for authentication 167 // return userdn (and username) for authentication
168 public function ldap_search_dn($value_to_search){ 168 public function ldap_search_dn($value_to_search){
169 $this->write_log("[function]> ldap_search_dn(".$value_to_search.")"); 169 $this->write_log("[function]> ldap_search_dn(".$value_to_search.")");
170 - $filter = '(&(objectCategory=person)('.$this->config['ld_attr'].'='.$value_to_search.'))'; 170 + $filter = '(&(objectClass=person)('.$this->config['ld_attr'].'='.$value_to_search.'))';
171 171
172 // connection handling 172 // connection handling
173 $this->write_log("[ldap_search_dn]> Connecting to server"); 173 $this->write_log("[ldap_search_dn]> Connecting to server");