From: Chris R. <chr...@me...> - 2002-09-09 08:14:23
|
On 6/9/02 3:29 pm, Jim Karocki <Jam...@mr...> wrote: > Any plans to include a password encrtyption routine. > like SSHA into the code base? > > Jim Karocki If by that you want Net::LDAP::bind to compute password hashes for you when you're doing a simple bind, then no. This is quite straightforward to do yourself using existing CPAN modules, for instance using SHA1 passwords: ----- use Digest::SHA1 qw(sha1_base64); use Net::LDAP; my $ldap = new Net::LDAP('ldap.example.com', version => 3); my $res = $ldap->bind('cn=Some Person, o=example.com', password => '{sha}' . sha1_base64('some password')); ----- Cheers, Chris |