ldap_search() question
| From: | Daniel Baird | Date: | Mon, 24 Nov 2003 00:41:04 +0000 |
| Subject: | ldap_search() question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170746@lists.php.net to get a copy of this message | ||
"Schechter, Ricky" <RSchechter@jonesknowledge.com> wrote:
Do I use ldap_search to authenticate users in LDAP? I can successfully search the LDAP and retrieve user's data based on a search criteria like (cn=something). If I use (password=somepass) or (userPassword=somepass) in the search criteria it comes back with no hits. How should this be done? Do I have to encrypt the password somehow? Thank you!Hi Ricky, Apologies if someone's already answered this, I get php-general in digest form and havn't seen an answer yet. Dunno if this is the standard way of authenticating via LDAP, but where I am I try to bind to the LDAP directory using the user's name and password. If it works, they're a valid user -- I can then release the binding, reconnect anonymously, and get the info I want about them.. Eventually I plan on moving to LiveUser (all these great packages weren't around when I built my system!) Cheers Daniel -- = Daniel Baird ============================ JCU Bookshop = = Systems Administrator James Cook University = = dan@bookshop.jcu.edu.au Townsville Q 4811 = = http://bookshop.jcu.edu.au ================= Australia =