On 9 Nov 2006, at 23:28, Hans Poo wrote:
Thanks again Quanah, but snip, it doesn't work, i've put:
replace=>{'userPassword'=>"{MD5}foo"}
But in the database i get:
userPassword:: e01ENX1mb28=
...that again is:
perl -MMIME::Base64 -e 'print decode_base64 ("e01ENX1mb28="), "\n"; '
{MD5}foo
No matter what i give, it always get base64 encoded, it seems that
Net::LDAP
doesn't respect the "header of the password: {MD5} in this case,"
that gives
the encoding.
See http://www.openldap.org/faq/data/cache/1346.html - this confused
the hell out of me for ages.