
Vincent Pottier - 2008-09-13 21:12:50
Doing a search with :
$contacts = $ldap->list_entries(array('dn','cn','mail','mobile', 'telephoneNumber', 'homePhone'));
returns wrong result for fields telephoneNumber and homePhone because the returned array have keys only in lowercase chars (seen with firePHP).
So after :
$list = @ldap_get_entries($this->cid, $raw_data);
I have added the following lines to correct the returned array :
$f2=array();
foreach($filter as $f) {
$f2[] = strtolower($f);
}
$filter=$f2;
Nice little class very handfull !