[one-users] how to create an internal user.
Carlos Martín Sánchez
cmartin at opennebula.org
Wed Jun 1 08:33:05 PDT 2011
Hi,
Take a look at these links [1,2].
In /lib/one/ruby/simple_permissions.rb (or
$ONE_LOCATION/lib/ruby/simple_permissions.rb in a self-contained
installation) you have to modify the auth_object method. Assuming you want
to give user 7 the same authorization as oneadmin:
--- a/src/authm_mad/simple_permissions.rb
+++ b/src/authm_mad/simple_permissions.rb
@@ -78,7 +78,7 @@ class SimplePermissions
# Authorizes each of the tokens. All parameters are strings. Pub
# means public when "1" and private when "0"
def auth_object(uid, object, id, action, owner, pub)
- return true if uid=='0'
+ return true if (uid=='0' || uid=='7')
auth_result=false
Best regards,
Carlos.
[1] http://opennebula.org/documentation:rel2.2:users
[2] http://opennebula.org/documentation:rel2.2:auth
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
On Wed, Jun 1, 2011 at 12:24 PM, salma rebai <rebai.salma at gmail.com> wrote:
> Hi all,
> I work with Opennbeula2.2. I would know is that possible to create a second
> administrator account to opennebula( an internel user). What should I do to
> create an internal user to OpenNebula. Is there some configuration in the
> auth file to make.
> Thanks in advance.
>
> --
> Salma REBAI
> Ingénieur Informatique
> Mastère Réseaux et Systèmes Multimédia
> Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
> Institut Télécom SudParis
> rebai.salma at gmail.com
>
> _______________________________________________
> 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/20110601/16f16024/attachment-0003.htm>
More information about the Users
mailing list