On Nov 9, 2006, at 5:59 PM, Hans Poo wrote:
Hi, thank your response:

I prepare the password:

my $digest = md5_base64("foo");

my $result = $ldap->modify(dn=>$dn,
replace=>{'userPassword'=>"{MD5}$digest"});

The expected result is to have {MD5}rL0Y20zC+Fzt72VPzMSk2A as the value for
the userPassword field, but instead i get:

userPassword:: e01ENX1yTDBZMjB6QytGenQ3MlZQek1TazJB

This base64 encoding is done by the LDIF exporter, that is what the :: represents. The value held in the directory will be "{MD5} rL0Y20zC+Fzt72VPzMSk2A"

What did you use to output the line above? It is not clear to me why it was decided to b64 encode the value for LDIF output as the value does not contain special characters.

Graham.

Reply via email to