I have managed to list the members of the group but it lists the cn. How do I get the fullname value for each? Do I have to pull the entries for each cn?
Here's the code:
$ds = ldap_connect("zen");
if($ds) {
$r = ldap_bind($ds);
} else {
echo "Unable to connect";
}
$sr=ldap_search($ds,"o=ONB", "cn=border_ftp*" );
$entry = ldap_first_entry($ds, $sr);
$attrs = ldap_get_attributes($ds, $entry);
$values = ldap_get_values($ds, $entry,"member");
for ($i=0; $i < $values["count"]; $i++)
echo $values[$i]."<br>";
ldap_close($ds);