Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-15 Thread Daniel P. Berrange
On Sat, Oct 13, 2012 at 04:02:56PM +0100, Richard W.M. Jones wrote: Another comment about virConnectOpenAuth: Is it possible to test uses of this API from scripts? It'd be nice if the test driver allowed you to test authentication, but I notice in the source that all uses of

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-15 Thread Daniel P. Berrange
On Sat, Oct 13, 2012 at 03:52:06PM +0100, Richard W.M. Jones wrote: Some questions which seem to be left ambigious by the documentation for virConnectAuthCallbackPtr: http://libvirt.org/html/libvirt-libvirt.html#virConnectAuthCallbackPtr (1) For a single open, can this be called multiple

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-15 Thread Peter Krempa
On 10/13/12 19:08, Richard W.M. Jones wrote: On Sat, Oct 13, 2012 at 05:47:24PM +0100, Richard W.M. Jones wrote: BTW I cannot get the libssh2 backend in libvirt to work. For every host it says: libvirt_auth.c: authentication required for libvirt URI 'qemu+libssh2://localhost/system'

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-15 Thread Daniel P. Berrange
On Sat, Oct 13, 2012 at 06:08:42PM +0100, Richard W.M. Jones wrote: On Sat, Oct 13, 2012 at 05:47:24PM +0100, Richard W.M. Jones wrote: BTW I cannot get the libssh2 backend in libvirt to work. For every host it says: libvirt_auth.c: authentication required for libvirt URI

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-15 Thread Richard W.M. Jones
On Mon, Oct 15, 2012 at 12:17:42PM +0200, Peter Krempa wrote: On 10/13/12 19:08, Richard W.M. Jones wrote: On Sat, Oct 13, 2012 at 05:47:24PM +0100, Richard W.M. Jones wrote: BTW I cannot get the libssh2 backend in libvirt to work. For every host it says: libvirt_auth.c: authentication

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-15 Thread Richard W.M. Jones
On Mon, Oct 15, 2012 at 11:17:55AM +0100, Daniel P. Berrange wrote: On Sat, Oct 13, 2012 at 06:08:42PM +0100, Richard W.M. Jones wrote: On Sat, Oct 13, 2012 at 05:47:24PM +0100, Richard W.M. Jones wrote: BTW I cannot get the libssh2 backend in libvirt to work. For every host it says:

[libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-13 Thread Richard W.M. Jones
Some questions which seem to be left ambigious by the documentation for virConnectAuthCallbackPtr: http://libvirt.org/html/libvirt-libvirt.html#virConnectAuthCallbackPtr (1) For a single open, can this be called multiple times? I'm thinking, some authentication methods might give the user N

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-13 Thread Richard W.M. Jones
Another comment about virConnectOpenAuth: Is it possible to test uses of this API from scripts? It'd be nice if the test driver allowed you to test authentication, but I notice in the source that all uses of virConnectAuthPtr are marked ATTRIBUTE_UNUSED, so I guess that's not a possible route.

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-13 Thread Richard W.M. Jones
On Sat, Oct 13, 2012 at 03:52:06PM +0100, Richard W.M. Jones wrote: Some questions which seem to be left ambigious by the documentation for virConnectAuthCallbackPtr: http://libvirt.org/html/libvirt-libvirt.html#virConnectAuthCallbackPtr (1) For a single open, can this be called multiple

Re: [libvirt] Some questions about virConnectAuthCallbackPtr

2012-10-13 Thread Richard W.M. Jones
On Sat, Oct 13, 2012 at 05:47:24PM +0100, Richard W.M. Jones wrote: BTW I cannot get the libssh2 backend in libvirt to work. For every host it says: libvirt_auth.c: authentication required for libvirt URI 'qemu+libssh2://localhost/system' libvirt_auth.c: credential 'echoprompt'