0
I’m very young with LDAP and I made a connection between my php server and my ad server. Now I want to list all the groups, so that users see if he is an administrator or not (or there may be another way?).
I’ve got that code so far:
$ldap = ldap_connect("192.168.1.108");
if ($ldap && $bind = @ldap_bind($ldap, $name."@redward.org", $pw)) {
// ldap_search e ldap_get_entries aqui eu acho, mas como?
}
I tried with ldap_search reading the manual in php.net but I couldn’t make it work as a whole. Can anyone show me how to make it work?