[libvirt] [dbus RFC 05/11] connect: don't use default libvirt authentication callback
Daniel P. Berrange
berrange at redhat.com
Tue Jan 23 09:56:51 UTC 2018
On Mon, Jan 22, 2018 at 06:16:03PM +0100, Pavel Hrdina wrote:
> We need to implement our own authentication callback because the
> default one ask for credentials using STDIO. This is not suitable
> behavior for daemon.
> For now we will require usage of client configuration file for libvirt
> to provide credentials for drivers that require authentication .
>  <https://libvirt.org/auth.html#Auth_client_config>
This is a long standing bug we should look at fixing one day. We should
make it possible to rely on the auth config file from a simple call to
virConnectOpen(), so people only need to use OpenAuth() when they have
a genuine callback to provide....
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> src/connect.c | 32 +++++++++++++++++++++++++++++++-
> 1 file changed, 31 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrange <berrange at redhat.com>
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list