reset admin password eucalyptus
This post explains how to reset admin password in eucalyptus version 2.0.3.
NOTE:
I assume, Eucalyptus 2.0.3 is configured to use postgres database.
By default Eucalyptus 2.0.3 use HSQLDB.
But the query specified here is common to all the databases.
How ever use this tweak at your own Risk (!)
Eucalyptus 2.0.3 authenticates user based on comparing md5 hash.
There are two ways to reset password.
1. Try to find the password from MD5 hash by decrypting.
But the issue is , if the password is not a dictionary word, finding the password is difficult.
Run the following query to get the md5 hash of admin user.
If you want to know md5 hash of any other user, replace 'admin' in the query with the 'username' .
The following web site helps to predict password from md5 hash.
http://www.hash-cracker.com/index.php#anchor
Generate MD5 Hash from following website.
http://www.hash-cracker.com/hash.php#anchor
Say My password is whoami
Now my MD5Hash is
update auth_users set auth_user_password=
'1b0679be72ad976ad5d491ad57a5eec0'
where auth_user_name='admin';
After executing this query,restart eucalyptus-clc.
Now you should be able to loginto eucalyptus 2.0.3 as admin user from Portal.
We can apply the same procedure to reset password of any user account in eucalyptus 2.0.3.
The same procedure [only updating MD5 hashes] can be applied where the following md5 hash Java API is used.
http://grails.org/AcegiSecurity+Plugin+-+Basic+Tutorial+with+Annotations
This post explains how to reset admin password in eucalyptus version 2.0.3.
NOTE:
- Take a back up of your Md5Hash.
- Use this only when Forget password is not working.
- After changing password, restart eucalyptus-clc service.
I assume, Eucalyptus 2.0.3 is configured to use postgres database.
By default Eucalyptus 2.0.3 use HSQLDB.
But the query specified here is common to all the databases.
How ever use this tweak at your own Risk (!)
Eucalyptus 2.0.3 authenticates user based on comparing md5 hash.
There are two ways to reset password.
1. Try to find the password from MD5 hash by decrypting.
But the issue is , if the password is not a dictionary word, finding the password is difficult.
Run the following query to get the md5 hash of admin user.
Database: eucalyptus_auth
Table: auth_users
select auth_user_password from auth_users where auth_user_name='admin';If you want to know md5 hash of any other user, replace 'admin' in the query with the 'username' .
The following web site helps to predict password from md5 hash.
http://www.hash-cracker.com/index.php#anchor
(or)
2. Generate md5 hash for a password and update the older hash with newly generated hash.Generate MD5 Hash from following website.
http://www.hash-cracker.com/hash.php#anchor
Say My password is whoami
Now my MD5Hash is
1b0679be72ad976ad5d491ad57a5eec0
Database: eucalyptus_auth
Table: auth_users
Now our query look as follows:
update auth_users set auth_user_password=
'1b0679be72ad976ad5d491ad57a5eec0'
where auth_user_name='admin';
After executing this query,restart eucalyptus-clc.
Now you should be able to loginto eucalyptus 2.0.3 as admin user from Portal.
We can apply the same procedure to reset password of any user account in eucalyptus 2.0.3.
The same procedure [only updating MD5 hashes] can be applied where the following md5 hash Java API is used.
http://grails.org/AcegiSecurity+Plugin+-+Basic+Tutorial+with+Annotations
No comments:
Post a Comment