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

Re: userPassword not crypted



On Mon, Oct 15, 2001 at 01:08:05PM +0200, Marcos Monge wrote:

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

Put encrypted passwords to the source ldif file. The following little
perl script will do the conversion for you (just pipe the ldif file with
unencrypted passwords through it):

perl -ne 'if (/^userPassword:\s+([^{].*)$/i) {print "userPassword: ",`slappasswd -s $1`} else {print $_}'

I do not think any kind of automatic encryption is needed at the server
side.

Gabor

-- 
Gabor Gombas                                       Eotvos Lorand University
E-mail: gombasg@inf.elte.hu                        Hungary