[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: userPassword not crypted



> > I have a problem with OpenLDAP 2.0.11 and 'userPassword' attribute.
> >
> > In slapd.conf I have a line like this:
> >
> > password-hash   {SHA}
> >
> > I add the following ldif with ldapadd without problem:
> > ----
> > dn: uid=test3, ou=usuarios, o=dominio.com
> > objectclass: misusuarios
> > cn: Usuario de test3
> > uid: test3
> > userpassword: test3
> > mail: test3
> > mail: test3@dominio.com
> > ----
> > And now, if I do a search with ldapsearch, the 'userpassord' is NOT
> > crypted:
> > ---
> > uid=test3, ou=usuarios, o=dominio.com
> > objectClass=misusuarios
> > cn=Don Usuario de test3
> > uid=test3
> > userPassword=test3
> > mail=test3
> > mail=test3@dominio.com
> > ---
> > Any one know why openldap not crypt the userPassword with SHA ??
> 
> You need to use ldappasswd to trigger the exop that crypts the password.

And there isn't anyway to crypt the password directly when added the
user without use ldappasswd??  

Thanks in advance
-- 
Un Saludo
Marcos Monge <mmonge@satec.es>
Area de Sistemas