The normal way to do this is:
make sure the login and password are both non-null
do an anonymous bind to the LDAP server
do a search for something like uid=$login or cn=$login or whatever attribute
your server uses to store the login identifer
make sure you got exactly one entry back from the search
use the dn returned by the search and the supplied password to do an
authenticated bind
look at the returned code (e.g., $mesg->code). If it is zero, all the
authentication succeeded
--Jim Harle
On Thu, 16 May 2002, Sandeep Karun wrote:
> Hi
>
> Could anyone pls let me know how to verify the username and passwd which
> is input to a perl program with an LDAP, using Net::LDAP.
>
> Thanks in advance
> Regards
> Sandeep
>
>
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: ban...@so...
>
|