On Monday, January 6, 2003, at 10:51 AM, Gary Lawrence Murphy wrote:
Try this code snippet:
Ok, I have to admit that I didn't try really hard, I just tried the
same method I used for encrypting openldap passwords and it didn't
work: How do you bootstrap the initial encrypted passwords for a
first-time installation?
Obviously, the jetspeed om scripts need to have pre-encrypted
strings as the passwords, but how should these be generated?
--
Gary Lawrence Murphy - [EMAIL PROTECTED] - TeleDynamics Communications
- blog: http://www.teledyn.com/mt/ - biz: http://teledyn.com/ -
"Computers are useless. They can only give you answers." (Picasso)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Iterator users = JetspeedSecurity.getUsers();
while (users.hasNext())
{
JetspeedUser user = (JetspeedUser) users.next();
Log.debug(this.getClass().getName()+": "+type+"ing password for user ["+user.getUserName()+"]");
String newpassword = JetspeedSecurity.encryptPassword(user.getPassword());
user.setPassword(newpassword);
// Save to database
JetspeedSecurity.saveUser(user);
}
}
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
