[Users] Authentication for REST APIs?

Michael Pasternak mpastern at redhat.com
Tue Oct 2 18:48:16 UTC 2012


Hi Brian,

On 10/02/2012 05:52 PM, Brian Vetter wrote:
> I also tried a simple connect to the home of the ovirt server in the ovirt-shell:
> 
>     [oVirt shell (disconnected)]# connect https://ovirtserver <user> <pass>
> 
>     error: 'str' object has no attribute 'product_info'

this could happen if you trying connect to SSL site via HTTP protocol,
btw what sdk/cli version you're using [1]? latest sdk/cli protects against
this.

[1] run 'info' command in cli

> 
>     [oVirt shell (disconnected)]# 
> 
> 
> So this happens without trying to get to the api/vms.
> 
> As to your question:
> 
>>     i think you should get an empty list and not a 401 in any case, but just to make sure - you have the user role on a specific VM and you don't see it?
> 
> 
> Yes, I believe this is true. If the same user logs into the user portal, he can see the VM and start/stop it. From the ovirt admin portal, I see the following permissions
> for the VM:

does this user has any other role/s besides UserRole?

> 
> *UserRole*
> Brian Vetter (bjvetter at domain)UserRole
> 
> Brian
> 
> On Oct 2, 2012, at 10:27 AM, Itamar Heim wrote:


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Users mailing list