Changeset 2893 in subversion
- Timestamp:
- Aug 29, 2009 4:24:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_ldap.php
r2892 r2893 245 245 $this->set_search_set($filter); 246 246 } 247 247 248 248 // exec LDAP search if no result resource is stored 249 249 if ($this->conn && !$this->ldap_result) … … 382 382 if ($this->conn && $dn) 383 383 { 384 $this->ldap_result = ldap_read($this->conn, base64_decode($dn), "(objectclass=*)", array_values($this->fieldmap));384 $this->ldap_result = ldap_read($this->conn, base64_decode($dn), '(objectclass=*)', array_values($this->fieldmap)); 385 385 $entry = @ldap_first_entry($this->conn, $this->ldap_result); 386 386 … … 555 555 function _exec_search() 556 556 { 557 if ($this->ready && $this->filter) 558 { 557 if ($this->ready) 558 { 559 $filter = $this->filter ? $this->filter : '(objectclass=*)'; 559 560 $function = $this->prop['scope'] == 'sub' ? 'ldap_search' : ($this->prop['scope'] == 'base' ? 'ldap_read' : 'ldap_list'); 560 $this->ldap_result = $function($this->conn, $this->prop['base_dn'], $ this->filter, array_values($this->fieldmap), 0, 0);561 $this->ldap_result = $function($this->conn, $this->prop['base_dn'], $filter, array_values($this->fieldmap), 0, 0); 561 562 return true; 562 563 }
Note: See TracChangeset
for help on using the changeset viewer.
