Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Authenticating with LDAPby sschneid (Deacon) |
on May 06, 2003 at 20:40 UTC ( [id://256040]=note: print w/replies, xml ) | Need Help?? |
Ignoring issues with maintaing state, getting the username and password from <insert data source here>, etc etc...
That should at least help you get started. It searches for the user, and if found, attempts to bind as the user (with the user's password). If it can successfully bind, you know the password supplied is correct and you can go ahead and set a cookie or whatnot. Note that the above code is also untested, and should only be used as something to get you started thinking about the process you'll want to implement. -s.
In Section
Seekers of Perl Wisdom
|
|