Re: operation forbidden Read Only Access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux