Hello Guys,
I’m having trouble logging in after an unsuccessful password change for the oneadmin user
Trying according to the documentation, it is not even possible to change the password
oneuser passwd 0 <my.password>
[one.user.passwd] User couldn't be authenticated, aborting call.
You ran into a chicken and egg problem. In order to change the oneadmin password, your CLI must be correctly loading the auth from /var/lib/one/.one/one_auth so the API Call to change the password gets correctly authenticated.
In this case, you need to change the password directly in the database.
mysql> use opennebula;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select body from user_pool where oid=0;
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| body |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| <USER><ID>0</ID><GID>0</GID><GROUPS><ID>0</ID></GROUPS><GNAME>oneadmin</GNAME><NAME>oneadmin</NAME><PASSWORD><![CDATA[b065663b91df7176a5d6567fddde2eb91b3ea73a5055c1f0915909f764d92cc6]]></PASSWORD><AUTH_DRIVER><![CDATA[core]]></AUTH_DRIVER><ENABLED>1</ENABLED><TEMPLATE><SSH_PUBLIC_KEY><![CDATA[ssh-rsa AAAA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9hbe/H9+M/++Xn1NQ4k= root@provisionengine]]></SSH_PUBLIC_KEY><TOKEN_PASSWORD><![CDATA[34ddec643cc879652f4959357dfb776d200dfc4ce13b7fcf883ac31b3c33ea0b]]></TOKEN_PASSWORD></TEMPLATE></USER> |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
For that replace the body column of the row 0 in the user_pool table with an XML like the one shown above. The XML must contain in PASSWORD the result of
Ya, tried this yesterday and works.
Strangely, the original files have the hashed password
But I need to write the password manually in the *_auth files without hashing
At the moment I can log in, but something strange happened, I can’t list the users inside the sunstone interface, only through the CLI with oneuser list or oneuser show , i missed something?
The core service opennebula and the CLI use the authentication locat at /var/lib/one/.one/one_auth which corresponds to the oneadmin user credentials.
Then the rest of the complementary services like opennebula-sunstone and opennebula-flow use the rest of the files in the ~/.one directory, which hold the serveradmin credentials. On the previous doc link there is a note about both users auth files.