Hi,
AFAIK this is problem of ssh transport in libvirt. It does not use
the callback mechanism for authentication. The code you want would work
with libssh2 transport (i.e. 'qemu+libssh2://...'), unfortunately
libssh2 is not enabled in RHEL.
Cheers,
Tomas
On Mon, 22 Aug 2016 14:16:02 +0300
Shahar Havivi <[email protected]> wrote:
> Hi,
>
> I try to login via the libvirt.openauth() API with qemu+tcp protocol and
> prompt for password,
>
> I am setting the username, password and the callback methdod with the
> following keys:
> auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE],
> request_cred, None]
>
> When I call openauth() method:
> conn = libvirt.openAuth('qemu+ssh://...', auth, 0)
>
> I am getting prompt for entriyng password.
> When using qemu+tcp it works fine.
>
> Thank you,
>
> Shahar.
--
Tomáš Golembiovský <[email protected]>
_______________________________________________
libvirt-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvirt-users