Re: ldap_list()
| From: | Mike Tuller | Date: | Wed, 14 May 2003 15:41:36 +0000 |
| Subject: | Re: ldap_list() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147597@lists.php.net to get a copy of this message | ||
My apologies,
I am running on OS X with PHP 4.3.0 and the LDAP server I am connecting to is an Exchange 5.5 server.
On Wednesday, May 14, 2003, at 10:32 AM, BigDog wrote:
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