Bug 499594 - virt-viewer doesn't know how to provide a username/password to libvirt connections
Summary: virt-viewer doesn't know how to provide a username/password to libvirt connec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-viewer
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11VirtTarget
TreeView+ depends on / blocked
 
Reported: 2009-05-07 11:19 UTC by Daniel Berrangé
Modified: 2009-07-23 18:59 UTC (History)
3 users (show)

Fixed In Version: 0.0.3-6.fc11
Clone Of:
Environment:
Last Closed: 2009-07-23 18:59:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix auth handling (1.12 KB, patch)
2009-05-07 12:07 UTC, Daniel Berrangé
no flags Details | Diff

Description Daniel Berrangé 2009-05-07 11:19:25 UTC
Description of problem:

$ virt-viewer -c qemu+tcp://somehost/system rhel5xen
libvir: Remote error : Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
unable to connect to libvirt qemu+tcp://somehost/system

Looking at the code it just calls virConnectOpenReadonly() and thus does not provide any authentication callback. This prevents connection using SASL+Digest-MD5

Version-Release number of selected component (if applicable):
0.0.3

How reproducible:
Always

Steps to Reproduce:
1. Config libvirtd to use SASL+Digest-MD5
2. virt-viewer -c qemu+tcp://somehost/system SOMEGUEST
2.
3.
  
Actual results:
libvir: Remote error : Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)

Expected results:
Prompts for username+password, and then connects to VNC

Additional info:

Comment 1 Daniel Berrangé 2009-05-07 12:07:24 UTC
Created attachment 342829 [details]
Fix auth handling

Comment 2 Daniel Berrangé 2009-05-07 12:14:00 UTC
Built in virt-viewer-0.0.3-5.fc11

Comment 3 Fedora Update System 2009-05-26 15:13:21 UTC
virt-viewer-0.0.3-5.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/virt-viewer-0.0.3-5.fc11

Comment 4 Fedora Update System 2009-05-27 19:06:53 UTC
virt-viewer-0.0.3-5.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update virt-viewer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-5519

Comment 5 Bug Zapper 2009-06-09 15:18:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Fedora Update System 2009-07-19 10:19:53 UTC
virt-viewer-0.0.3-6.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update virt-viewer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-5519

Comment 7 Fedora Update System 2009-07-23 18:58:51 UTC
virt-viewer-0.0.3-6.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.