"Schechter, Ricky" <[EMAIL PROTECTED]> 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 = = [EMAIL PROTECTED] Townsville Q 4811 = = http://bookshop.jcu.edu.au ================= Australia =
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php