I would like to get all user displayname record form active directory using adldap php?
this code can get the single record.
if ($adldap->authenticate($username, $password)){
$result=$adldap->user()->infoCollection("$username", array("*"))->displayName;
print_r($result);
}
but I want to get all display name record form active directory, I tried the following code, but not work
if ($adldap->authenticate($username, $password)){
$result=$adldap->user()->infoCollection("*")->displayName; //show all record
print_r($result);
}
any idea, thank you very much