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

Re: How can I get OpenLDAP to hash passwords as crypt?



> I am using 2.1.2 and I have the "password-hash {CRYPT}" in my config file.
>  My ldapadds use the cleartext passwords, eg. "userpassword: secret", but
> I'm guessing OpenLDAP will hash those before storing them?  If not, how do
> I do this?

Not an entirely unreasonable guess, but still a wrong one. To get OpenLDAP
to treat the userPassword attribute as special, you have to use
ldappasswd, not ldapadd. man ldappasswd for syntax.