Re: ldap_list()

From: Date: Wed, 14 May 2003 15:32:22 +0000
Subject: Re: ldap_list()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147595@lists.php.net to get a copy of this message
Supply this info: 1. What OS is php running on? 2. What type of ldap server are u using? - Ray On Wed, 14 May 2003, Mike Tuller wrote: > I am trying to get ldap_list to list all the departments that are > entered into the ldap server. I have modified the example that it in > the manual. Here is what I have. > > $ldap=ldap_connect("myldapserver"); // must be a valid LDAP server! > > $basedn = "o=ISD11, c=US"; > $department = array("department"); > > $sr=ldap_list($ldap, $basedn, "department=*", $department); > > $info = ldap_get_entries($ldap, $sr); > > for ($i=0; $i<$info["count"]; $i++) > { > echo $info[$i]["department"][0] ; > } > > > When I run this, I get an empty page back. I know that department > information is there, but nothing is returned. Am I doing something > wrong here? > > > Mike > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#147595) next »