
4 Mar
2010
4 Mar
'10
10:08 p.m.
On 03/03/2010 12:11 PM, Marco Mornati wrote:
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
Check out this test class: http://libvirt.org/git/?p=libvirt-java.git;a=blob;f=src/test/java/test.java;... It shows how the ConnectAuthDefault class is used. You need to create a new class which implements ConnectAuth and pass it in. -- bk