Hello, i used:
ldapsearch -W -D
cn=Manager,dc=mydomain,dc=cl -x -b 'dc=mydomain,dc=cl' '(uid=myuid)'
Hans
On Thu, 9 Nov 2006 19:18:52 -0600, Graham Barr wrote
> 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.
Hans Christian Poo Rocco, Gerente General WeLinux.S.A.
Of: 672.93.18, Cel: 09-319.93.05, [EMAIL PROTECTED], http://www.welinux.cl
Nataniel Cox # 210 Of 56, Santiago de Chile