Hello,  I am trying to use the set password call  to cause my Openldap
server  (2.1.22-8) in perl 5.6.1  on Linux to set the password to an
MD5 hashed value.   My understanding is that the value set in 
newpasswd should be passed to the ldap, which will then via the
RFC3062 extensions, hash the password, and store it in the
userPassword field (LDAP standard attribute)

>From my  debugging, sessions, I think  the Perl function is hashing
the value and sending it, as the value seen in both the ldap logs and
the output from $mesg->gen_password seems to change every time for a
static password.

See production code snippet: 
++++++++++++++=
sub passwordHash 
    {
     print "Start of Password Hashing \n";
     $mesg = $ldap->set_password
             (
              new_password => $userPassword,
              user => 'emailaddress=' . $emailAddress . ', '
                . 'ou=people, ' . $base);
     $mesg->code && die "LDAP Password modify failed: " . $mesg->error;
    }
++++++++++++++=
Please tell me what I'm doing wrong , or if this is a bug
Regards 
Ed

Reply via email to