Discussion:
[one-users] Authentication issues for oneadmin account
Paul Richards
2012-02-22 14:11:16 UTC
Permalink
Hi,

I'm running into a few problems while trying to verify the installation of
ON on Ubuntu 11.10:

oneadmin at on-opennebula-app:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.

The one service starts without error and I can also start occi-server and
sunstone-server. However, I cannot log into either using the oneadmin
account due to an incorrect password.

I verified the linux user oneadmin has the same password that is specified
in the /.one/one_auth file. I also tried to change the password using
oneuser command:

oneadmin at on-opennebula-app:~/.one$ oneuser passwd 0 password
[UserChangePassword] User couldn't be authenticated, aborting call.

Any suggestions for how to resolve this? I took over the configuration of
this box after someone had already installed ON 3.2.1. I'd like to try and
resolve the problem without reinstalling.

Thanks

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120222/0e483e54/attachment.htm>
Carlos Martín Sánchez
2012-02-23 13:47:57 UTC
Permalink
Hi,

The linux and opennebula accounts are not related, and they can have
different names and passwords. Oneadmin is just the opennebula user with ID
0.

If you took the opennebula installation from someone who didn't give you
the password... then you'll have to edit the database.

Update the user_pool table entry for the user with oid 0. You have to
change the 'body' column, it contains an xml string, the PASSWORD element
stores the sha1 of the plain password.

For instance, set the PASSWORD element to the sha1 of 'abc' :
a9993e364706816aba3e25717850c26c9cd0d89d

Then you just have to use that password in sunstone, or the cli:
$ echo "oneadmin:abc" > ~/.one/one_auth

cheers
--
Carlos Mart?n, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
Post by Paul Richards
Hi,
I'm running into a few problems while trying to verify the installation of
oneadmin at on-opennebula-app:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
The one service starts without error and I can also start occi-server and
sunstone-server. However, I cannot log into either using the oneadmin
account due to an incorrect password.
I verified the linux user oneadmin has the same password that is specified
in the /.one/one_auth file. I also tried to change the password using
oneadmin at on-opennebula-app:~/.one$ oneuser passwd 0 password
[UserChangePassword] User couldn't be authenticated, aborting call.
Any suggestions for how to resolve this? I took over the configuration of
this box after someone had already installed ON 3.2.1. I'd like to try and
resolve the problem without reinstalling.
Thanks
Paul
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120223/a50f8fef/attachment.htm>
Paul Richards
2012-02-22 14:11:16 UTC
Permalink
Hi,

I'm running into a few problems while trying to verify the installation of
ON on Ubuntu 11.10:

oneadmin at on-opennebula-app:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.

The one service starts without error and I can also start occi-server and
sunstone-server. However, I cannot log into either using the oneadmin
account due to an incorrect password.

I verified the linux user oneadmin has the same password that is specified
in the /.one/one_auth file. I also tried to change the password using
oneuser command:

oneadmin at on-opennebula-app:~/.one$ oneuser passwd 0 password
[UserChangePassword] User couldn't be authenticated, aborting call.

Any suggestions for how to resolve this? I took over the configuration of
this box after someone had already installed ON 3.2.1. I'd like to try and
resolve the problem without reinstalling.

Thanks

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120222/0e483e54/attachment-0002.htm>
Carlos Martín Sánchez
2012-02-23 13:47:57 UTC
Permalink
Hi,

The linux and opennebula accounts are not related, and they can have
different names and passwords. Oneadmin is just the opennebula user with ID
0.

If you took the opennebula installation from someone who didn't give you
the password... then you'll have to edit the database.

Update the user_pool table entry for the user with oid 0. You have to
change the 'body' column, it contains an xml string, the PASSWORD element
stores the sha1 of the plain password.

For instance, set the PASSWORD element to the sha1 of 'abc' :
a9993e364706816aba3e25717850c26c9cd0d89d

Then you just have to use that password in sunstone, or the cli:
$ echo "oneadmin:abc" > ~/.one/one_auth

cheers
--
Carlos Mart?n, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
Post by Paul Richards
Hi,
I'm running into a few problems while trying to verify the installation of
oneadmin at on-opennebula-app:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
The one service starts without error and I can also start occi-server and
sunstone-server. However, I cannot log into either using the oneadmin
account due to an incorrect password.
I verified the linux user oneadmin has the same password that is specified
in the /.one/one_auth file. I also tried to change the password using
oneadmin at on-opennebula-app:~/.one$ oneuser passwd 0 password
[UserChangePassword] User couldn't be authenticated, aborting call.
Any suggestions for how to resolve this? I took over the configuration of
this box after someone had already installed ON 3.2.1. I'd like to try and
resolve the problem without reinstalling.
Thanks
Paul
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120223/a50f8fef/attachment-0002.htm>
Paul Richards
2012-02-22 14:11:16 UTC
Permalink
Hi,

I'm running into a few problems while trying to verify the installation of
ON on Ubuntu 11.10:

oneadmin at on-opennebula-app:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.

The one service starts without error and I can also start occi-server and
sunstone-server. However, I cannot log into either using the oneadmin
account due to an incorrect password.

I verified the linux user oneadmin has the same password that is specified
in the /.one/one_auth file. I also tried to change the password using
oneuser command:

oneadmin at on-opennebula-app:~/.one$ oneuser passwd 0 password
[UserChangePassword] User couldn't be authenticated, aborting call.

Any suggestions for how to resolve this? I took over the configuration of
this box after someone had already installed ON 3.2.1. I'd like to try and
resolve the problem without reinstalling.

Thanks

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120222/0e483e54/attachment-0003.htm>
Carlos Martín Sánchez
2012-02-23 13:47:57 UTC
Permalink
Hi,

The linux and opennebula accounts are not related, and they can have
different names and passwords. Oneadmin is just the opennebula user with ID
0.

If you took the opennebula installation from someone who didn't give you
the password... then you'll have to edit the database.

Update the user_pool table entry for the user with oid 0. You have to
change the 'body' column, it contains an xml string, the PASSWORD element
stores the sha1 of the plain password.

For instance, set the PASSWORD element to the sha1 of 'abc' :
a9993e364706816aba3e25717850c26c9cd0d89d

Then you just have to use that password in sunstone, or the cli:
$ echo "oneadmin:abc" > ~/.one/one_auth

cheers
--
Carlos Mart?n, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
Post by Paul Richards
Hi,
I'm running into a few problems while trying to verify the installation of
oneadmin at on-opennebula-app:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
The one service starts without error and I can also start occi-server and
sunstone-server. However, I cannot log into either using the oneadmin
account due to an incorrect password.
I verified the linux user oneadmin has the same password that is specified
in the /.one/one_auth file. I also tried to change the password using
oneadmin at on-opennebula-app:~/.one$ oneuser passwd 0 password
[UserChangePassword] User couldn't be authenticated, aborting call.
Any suggestions for how to resolve this? I took over the configuration of
this box after someone had already installed ON 3.2.1. I'd like to try and
resolve the problem without reinstalling.
Thanks
Paul
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120223/a50f8fef/attachment-0003.htm>
Loading...