[ovirt-devel] SSO using remote-viewer
Vinzenz Feenstra
vfeenstr at redhat.com
Mon Aug 11 13:26:30 UTC 2014
On 08/11/2014 03:12 PM, Denis Kirjanov wrote:
>
> ----- Исходное сообщение -----
> От: "Vinzenz Feenstra" <vfeenstr at redhat.com>
> Кому: "Michal Skrivanek" <michal.skrivanek at redhat.com>, "Denis Kirjanov" <kda at itsirius.su>
> Копия: devel at ovirt.org
> Отправленные: Понедельник, 11 Август 2014 г 17:07:40
> Тема: Re: [ovirt-devel] SSO using remote-viewer
>
> On 08/11/2014 03:06 PM, Vinzenz Feenstra wrote:
>> On 08/11/2014 03:01 PM, Michal Skrivanek wrote:
>>> On Aug 11, 2014, at 14:14 , Denis Kirjanov <kda at itsirius.su> wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I'm trying to login to a virtual machine without using the web
>>>> interface (User Portal) but through the remote-viewer and a small
>>>> python script to gather all required info such a certificate
>>>> subject, ticken and ports.
>>>> The virtual machine has the rhevm sso package installed so I can get
>>>> to the machine through the web UI,
>>>> but I can't do the same thing using remote-viewer. What I do see is
>>>> a gdm login window with
>>>> my user account and 2 icons (Login into session and RHEV-M SSO login).
>>>>
>>>> Looks like I have to invoke something inside my python script to get
>>>> an access but I can't figure out what is missing…
>>> you need to issue the "desktopLogin" command to actually perform the
>>> sign on. The viewer itself doesn't do anything
>> If this is going through vdsm then it's the desktop login command. Via
>> the REST API it'd be just /vms/{vmid}/logon
> Note: The REST API supports this from oVirt/RHEV 3.5
>
> Thanks, but we're using oVirt/RHEV 3.1.
> Does the PythonAPI (or ReST API) support something like this in 3.1?
Well only the XMLRPC api of the Host supports the desktopLogin verb, as
Michal already said.
vdsClient for example can do this, when it has the right certificates
vdsClient -s <HOSTIP> desktopLogin <VMID> <DOMAIN> <USER> <PASSWORD>
HTH
>
>
>>> Thanks,
>>> michal
>>>
>>>> Thanks!
>>>> _______________________________________________
>>>> Devel mailing list
>>>> Devel at ovirt.org
>>>> http://lists.ovirt.org/mailman/listinfo/devel
>>
>
--
Regards,
Vinzenz Feenstra | Senior Software Engineer
RedHat Engineering Virtualization R & D
Phone: +420 532 294 625
IRC: vfeenstr or evilissimo
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
More information about the Devel
mailing list