[prev in list] [next in list] [prev in thread] [next in thread]
List: libvirt-users
Subject: Re: [libvirt-users] operation forbidden Read Only Access
From: Jean-Pierre Ribeauville <jpribeauville () axway ! com>
Date: 2016-01-11 12:16:10
Message-ID: 1051EFB4D3A1704680C38CCAAC5836D292F02108 () WPTXMAIL2 ! ptx ! axway ! int
[Download RAW message or body]
Hi,
Great if I'm able to avoid prompting the user.
Thanks a lot.
J.P.
-----Message d'origine-----
De : Michal Privoznik [mailto:mprivozn@redhat.com]
Envoyé : lundi 11 janvier 2016 13:07
À : Jean-Pierre Ribeauville; libvirt-users@redhat.com
Objet : Re: [libvirt-users] operation forbidden Read Only Access
On 08.01.2016 14:30, Jean-Pierre Ribeauville wrote:
> Hi,
>
> I found an answer :
>
> Use virConnectOpenAuth() instead of virConnectOpenReadOnly().
>
> As my piece of code is running silently (without user connected) , by
> using virConnectOpenAuth() , is it possible to avoid to prompt user to get user \
> /password ?
Yes it is. You basically need just to pass a callback that will supply credentials to \
libvirt. Does not matter how it gets it. You may want to read documentation:
http://libvirt.org/html/libvirt-libvirt-host.html#virConnectOpenAuth
or see the code for examples.
Michal
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic