LDAP Search Parameters in Active Directory

From: Date: Thu, 22 May 2003 02:37:06 +0000
Subject: LDAP Search Parameters in Active Directory
Groups: php.windows 
Request: Send a blank email to php-windows+get-20028@lists.php.net to get a copy of this message
Hi, (environment: W2K, Apache 1.3, PHP 4.3.1) I am trying to find an elegant solution to identify the users of an intranet site. I thought using their regular network username/password would add the least burden to the process and I am hoping to use the PEAR::Auth class. I can bind to the LDAP db using: ldap_bind($ds,'DOMAIN\\username','password') which would indicate that I have the connection parameters right. However, I cannot retrieve attributes of that user (such as email). I am using: $result_id=ldap_search($ds, "CN=Schema,CN=Configuration,DC=my_company,DC=local", "(&(objectClass=posixAccount)(uid=username))") ldap_search does return a resource, but when passed to ldap_count_entries, it produces an error. I am looking for some help for the correct settings of the ldap_search parameters. Thanks, Pascal

« previous php.windows (#20028) next »