[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] User Based Access Control
Hi Thomas/Olivier, thanks for the replies. I have found a way to do sufficient UBAC (User Based Access Control) using the features in XenServer itself (although, I do need to use 6.2 or 6.5 - I'll explain in a bit). What I have done is to use PAM authentication w/ a unix/linux user created on the XenServer itself. Once I set up PAM, what I do is create a linux user called User1, and then create a subject using User1. After that, I set the role to only read-only, and host.call_plugin. At this time, the subject is allowed to run only these two commands.  The model that we have, is that there are multiple control VMs w/ a hostname, that need to create objects (network, vbd/vif, other VMs) such that the operations being executed from said control VM can operate only on objects that "belong" to it on the XenServer. So, what I do is encrypt the arguments to the host-plugin using openssl asymetric encryption, so that it can identify who it is, and then I save the hostname of the control VM in either the description or other-config based on what kind of an object I'm creating on XenServer. This does address the needs that I have. However, what I have found, is that the licensing on XenServer 6.0.2 doesn't seem to be unrestricted for some commands (subject-role-add/subject-role-remove) as it is on Xenserver 6.2 and 6.5. Is this something that either of you, or somebody on the list is familiar w/? The specific error that I receive is as follows : [root@XenServer ~]# xe subject-role-remove uuid=3e34169d-e0ac-a1ba-8b3a-86237342db51 role-name=pool-admin This operation is not allowed under your license. Please contact your support representative. [root@XenServerÂ~]# This is even though the installation says that it is xenenterprise. The license does say that it is 'Citrix XenServer'. Am I missing something? Regards, Shiva On Wed, Feb 25, 2015 at 6:16 AM, Thomas Sanders <thomas.sanders@xxxxxxxxxx> wrote: Cloudstack/Cloudplatform does something like this. _______________________________________________ Xen-api mailing list Xen-api@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api |
Lists.xenproject.org is hosted with RackSpace, monitoring our |