ldap and printing of specific set out attributes

From: Date: Tue, 18 Mar 2003 20:22:45 +0000
Subject: ldap and printing of specific set out attributes
Groups: php.general 
Request: Send a blank email to php-general+get-140185@lists.php.net to get a copy of this message
Hello, I have a list of users in LDAP. I do a: $result=ldap_search($ldapconn,"ou=Users,dc=domain,dc=com", "g idNumber=100"); to find the group of accounts I am looking for. Now what I want to do is take the uid from each entry and print it out. I have tried using ldap_get _entries but it does not seem to be working. In order to cycle thru the array I am attempting to use: for ($i=0; $i < $info["count"]; $i++) { print $info[$i]["uid"][$i]."\n"; } Any help on what I am doing wrong would be greatly apprecieated. Jim --

« previous php.general (#140185) next »