[libvirt] Libvirt Auth
Marco Mornati
mmornati at byte-code.com
Wed Mar 3 18:56:03 UTC 2010
I tried to modify the python esx script to provide authentication
(without asking to user) and it doesn't work!!
Any other idea?
Bye
Marco
Il giorno 03/mar/2010, alle ore 19.03, Matthias Bolte <matthias.bolte at googlemail.com
> ha scritto:
> 2010/3/3 Marco Mornati <mmornati at byte-code.com>:
>> Hello guys,
>>
>> I've created a plugin for Hudson (CI) to manage virtmachines using
>> libvirt
>> java (start vm for a build and stop just after).
>>
>> I've just a problem in authentication, in fact I cannot send uname
>> and
>> password using code, libvirt ask me for the credentials on CLI.
>> someone
>> could explain me How I can use authentican or where I can find an
>> usage
>> guide or example?
>>
>> Thanks a lot
>> Bye
>> Marco
>>
>
> You have to use virConnectOpenAuth to open a connection and provide an
> authentication callback.
>
> I have no Java example at hand but you can look at the
> examples/python/esxlist.py Python script for an example how to provide
> an authentication callback.
>
> Also see the ConnectAuth and ConnectAuthDefault classes in the Java
> bindings.
>
> Matthias
More information about the libvir-list
mailing list