Bug 499594

Summary: virt-viewer doesn't know how to provide a username/password to libvirt connections
Product: [Fedora] Fedora Reporter: Daniel Berrangé <berrange>
Component: virt-viewerAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: berrange, markmc, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.0.3-6.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-23 18:59:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 480594    
Attachments:
Description Flags
Fix auth handling none

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.