7 May 22:29
[PATCH] virtinst: Use openAuth to support SASL and PolicyKit
The attached patch changes the virt-* cli tools to use the libvirt openAuth function for opening connections. This allows using PolicyKit and SASL auth with the tools. polkit-auth is forced to run in cli mode, so no graphical dialog will be launched. I've thought about having the --prompt flag play a role here, but since the use cases this fulfills did not previously work, there shouldn't be any chance of breaking existing uses. Thanks, Cole
# HG changeset patch # User Cole Robinson <crobinso@...> # Date 1241723712 14400 # Node ID 0c58ccf22773e2906853f3ac95fb3cc9ceaa158d # Parent 2ac98205eb469857ea4110125502eab23dd8e24f Allow PolicyKit and SASL authentication. Use openAuth when opening the initial connection: allows PolicyKit and SASA username/password auth. diff -r 2ac98205eb46 -r 0c58ccf22773 virtinst/cli.py --- a/virtinst/cli.py Thu May 07 13:47:49 2009 -0400 +++ b/virtinst/cli.py Thu May 07 15:15:12 2009 -0400 @@ -117,6 +117,7 @@ print _("Exiting at user request.") sys.exit(0)(Continue reading)
RSS Feed