I've tried it like this:
Code: Select all
$ou_rak=ldap_search($ldapConnection,"cn=".$users_username.",o=rollo", "ou=*");I'm totally new to LDAP and its consepts. (And context
thanks
Moderator: General Moderators
Code: Select all
$ou_rak=ldap_search($ldapConnection,"cn=".$users_username.",o=rollo", "ou=*");but I'm (still) unfamiliar with LDAP, so no further (context) advices from meExample 1. Produce a list of all organizational units of an organization
// $ds is a valid link identifier for a directory server
$basedn = "o=My Company, c=US";
$justthese = array("ou");
$sr=ldap_list($ds, $basedn, "ou=*", $justthese);
$info = ldap_get_entries($ds, $sr);
for ($i=0; $i<$info["count"]; $i++)
echo $info[$i]["ou"][0] ;