Subject: | userPassword hash modes ignored |
Date: | Mon, 21 Nov 2016 18:39:44 +0000 |
To: | "bug-perl-ldap [...] rt.cpan.org" <bug-perl-ldap [...] rt.cpan.org> |
From: | Andrew Meyer <ameyer [...] servercentral.com> |
Net::LDAP is up to date. (0.65)
When adding a password to a user's account the {hash method} is dropped off.
for example:
my $result = $ldap->add ( "$userDn",
attr => [
'objectClass' => ["posixAccount",
........
"ldapPublicKey"],
'cn' => ["$userName"],
'gidNumber' => ["$gidNumber"],
'homeDirectory' =>
["/home/$userName"],
'sn' => ["$user{sn}"],
'uid' => ["$userName"],
'uidNumber' => ["$uidNumber"],
'loginShell' => ["/bin/bash"],
'userPassword' =>
["{SASL}$user{sAMAccountName}"],
'mail' => ["$user{mail}"],
]
);
When I look up the user in LDAP, the userPassword does not have {SASL}
prepended to the attribute's value. The password should be a
"plaintext" password that has the value of user{sAMAccountName}
prepended with {SASL}
Please advise