[one-users] User Impersonation with API
Ricardo Duarte
rjtd21 at hotmail.com
Tue Jan 8 15:39:56 PST 2013
Hi Carlos,
It works if I use the CloudAuth class, thanks.
But I kind of hacked this into my code, by copying all the files in CloudAuth and also server_cipher_auth.rb.
As far as I can see, there is nothing simpler on the oca API.
Is there any chance of implementing the impersonation as a method into OpenNebula::Client?
Regards,
Ricardo
From: cmartin at opennebula.org
Date: Tue, 8 Jan 2013 12:24:42 +0100
Subject: Re: [one-users] User Impersonation with API
To: rjtd21 at hotmail.com
CC: users at lists.opennebula.org
Hi,This is done with the server_* drivers, it is explained in detail here [1]The ruby client side is implemented in src/cloud/common [2]
Regards
[1] http://opennebula.org/documentation:rel3.8:cloud_auth[2] http://dev.opennebula.org/projects/opennebula/repository/show/src/cloud/common?rev=one-3.8
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualizationwww.OpenNebula.org | cmartin at opennebula.org | @OpenNebula
On Mon, Jan 7, 2013 at 3:58 PM, Ricardo Duarte <rjtd21 at hotmail.com> wrote:
Hi there,
I'm currently using the Ruby API to implement a custom cloud frontend.
The end user will not log with the OpenNebula credentials, so my frontend will not be able to login with the user credentials.
But it does have the oneadmin credentials.
What I want to do is to impersonate the user, every time I create a virtual machine.
Is there a way to do it?
Thanks,
Ricardo
_______________________________________________
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/20130108/527320be/attachment-0002.htm>
More information about the Users
mailing list