[one-users] XML RPC - one.user.info authorization
Ruben S. Montero
rubensm at dacya.ucm.es
Wed Mar 17 14:38:59 PDT 2010
Hi,
Only oneadmin (i.e. user with ID=0) is allowed to invoke the
"one.userpool.*" and "one.user.*· methods. The "Error code: -1" means
either a wrong format (i.e. not <user>:<password>), a not registered
user or a wrong password.
Cheers
Ruben
On Wed, Mar 17, 2010 at 10:23 PM, Tobias Höfler
<hoefler.tobias at googlemail.com> wrote:
> Hi,
>
> Actually, I need a list with all users and their user IDs.
>
> I've tested the "one.userpool.info" method, but the following error
> message gets returned:
> User not authorized to pull user pool info. Error code: -1
>
> I called the one.user.info method with both parameters.
>
> It seems, that there is an authorization problem....
>
> Thanks for your help,
> Tobias
>
>
> Jeroen Nijhof wrote:
>> Hi,
>>
>> Did you call the one.user.info method with the two parameters?
>>
>> oneadmin:<sha1 passwd string>, <an user id>
>>
>> If you want a list of existing users use the one.userpool.info method
>> instead with the auth parameter:
>>
>> oneadmin:<sha1 passwd string>
>>
>> Regards,
>> Jeroen
>>
>> On Wed, 2010-03-17 at 20:57 +0100, Tobias Höfler wrote:
>>
>>> Hi all,
>>>
>>> I'm currently programming with the XML RPC API of OpenNebula.
>>> If i try to execute the one.user.info method (with the oneadmin user) I
>>> always get the message "User not authorized to retrieve user information".
>>> Does anyone know, how I could fix the problem ?
>>>
>>> Thanks a lot in advance.
>>> cheers, Tobias
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
--
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid
URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
More information about the Users
mailing list