Thank's to all, there was a trouble in my program  and it never tried the 
Net::LDAP::Extension::SetPassword as i supposed it was doing. 

With this module it worked fine, but always using SMD5, i just give it the 
password without encoding or encoding type heading. 

I will check if there is a chance to use other encodings with this module an 
post later.

I have to say that the traditional replace way (not setpassword) using the 
password in clear like this stores it in clear in the ldap server.

Thank you
Hans

On Thu, 9 Nov 2006 23:19:14 +0000, Mike Whitaker wrote
> 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.


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

Reply via email to