[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: userPassword?



If you have secure ACLs (and you should), you can only check user
passwords by binding to the directory as that user.  In Graham Barr's
perl-ldap distribution the syntax is:
$msg = $ldap->bind($dn, password => "mypass", version => 3)
if ("mypass" ne "" && $msg->code == 0) { # the password is correct.
...

John

> Mehdi Jabal Ameli wrote:
> 
> hi,
> Can I check user password in Perl script?
> (dn->userPassword=="mypass")
> 
> 
> 
> Mehdi Jabalameli
> jabalameli@ce.sharif.edu
> ce.sharif.edu/~jabalameli