Bluehost.com Web Hosting $6.95

ldap_search() question

This is a discussion on ldap_search() question within the PHP General forums, part of the PHP Programming Forums category; Do I use ldap_search to authenticate users in LDAP? I can successfully search the LDAP and retrieve user's data ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2003
Ricky Schechter
 
Posts: n/a
Default ldap_search() question

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!
Reply With Quote
  #2 (permalink)  
Old 11-23-2003
Kelly Hallman
 
Posts: n/a
Default Re: [PHP] ldap_search() question

On Sat, 22 Nov 2003, Schechter, Ricky 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?


You probably need to use ldap_compare() to verify the password. Most LDAP
servers won't send back the password field contents. Hope that helps!

--
Kelly Hallman
// Ultrafancy
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0