Creating Acegi Users in a script
We are using Acegi plugin for Authentication and Authorization in Grails. We had to create users in bulk using MySql script. We have to know the encrypted password for each user, corresponding to the clear text password to insert in the database. (Acegi encrypts the password before storing it in the database).
I came across this nice post http://stackoverflow.com/questions/1472431/acegi-password-encryption.
I was also thinking that Acegi must be using MD5, but after reading this post realized that it is SHA1 encryption.
You can get the sha1 encrypted password by issuing this command
echo -n password | openssl sha1
For eg. if your password is admin you can find encrypted password by issuing this command
echo -n admin | openssl sha1
Mule IDE for Galileo
I was stuck this week while trying to install Mule IDE plugin for Eclipse Galileo. Then I came across this. Basically, you have to uncheck “Group items by category” before installing the plugin
-
Archives
- October 2009 (2)
- September 2009 (3)
- August 2009 (2)
- July 2009 (1)
- June 2009 (2)
- May 2009 (3)
- April 2009 (8)
- February 2009 (2)
- December 2008 (1)
- November 2008 (3)
- October 2008 (1)
- January 2008 (8)
-
Categories
-
RSS
Entries RSS
Comments RSS
