Hi, it seems that slapd generates a random password and modifies the userPassword although a newpassword is presented. This few lines of perl may show what I am talking about, based on this code slapd generates a random password and modifies userPassword.
$msg = $ldap->set_password( oldpassword=> '0J2zrRpD', newpassword=> 'Mu321Ha' ); die "Error: ",$msg->code(), ":",$msg->error() if ($msg->code()); print "Password modified to: ", $msg->gen_password() , "\n";
I know this code is buggy, but still, as newpassword is present, a genpassword call should not be accepted or an error message should be returned, but under no circumstances the password should be modified with the random password. Any thoughts?
-Dieter