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

RE: how to generate initial password



Wouldn't it need to be:

print "userPassword: {crypt}$my_passwd\n";

-Steve

-----Original Message-----
From: Beast [mailto:beast@setuid.com]
Sent: Saturday, June 21, 2003 12:22 AM
To: openldap-software@OpenLDAP.org
Subject: how to generate initial password


Hello,

I'm import users from some other system (not *nix) so i need to
generate initial user password (which is same as username).
I'm using this perl script to generate the passowrd, but it did't works
(user can not login due to invalid credentials).

$my_passwd = crypt($username, $salt);

print "userPassword: {crypt}$username\n";

any clue?
Tks.


--beast