Bug 647091

Summary: VNC authentication only check first 8 characters
Product: Red Hat Enterprise Linux 5 Reporter: YangFeng <fyang>
Component: kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.6CC: michen, mkenneth, virt-maint, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-14 12:17:29 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: 580948    

Description YangFeng 2010-10-27 07:23:11 UTC
Description of problem:
When setting VNC password longer than 8 characters, VNC authentication only check first 8 characters when connection.

Version-Release number of selected component (if applicable):
kernel: 2.6.18-227.el5
kvm version: kvm-83-206.el5

How reproducible:
100%

Steps to Reproduce:
1. Start guest with -vnc :port,password.
2. Go to qemu-monitor, input "change vnc password".
3. Set your password to '1234567890'.
4. Use vnc client to connect the guest.
5. Input '12345678' as password in vnc client.


Actual results:
vnc client connect to guest successfully.

Expected results:
vnc client could not connect to guest.  'Authentication failed' is displayed.

Additional info:

Input '1234567' (first 7 characters) as password in vnc client, then 'Authentication failed' is displayed.

qemu command line:
qemu-kvm -name 'vm1' -monitor /dev/tty -serial unix:'/tmp/serial-20101025-181459-zb56',server,nowait -drive file='/usr/autotest/client/tests/kvm/images/RHEL-Server-5.5-64-virtio.qcow2',index=0,if=virtio,media=disk,cache=none,boot=on,format=qcow2 -net nic,vlan=0,model=rtl8139,macaddr='02:8F:A8:D8:2c:85' -net tap,vlan=0,ifname='rtl8139_0_8000',script='/usr/autotest/client/tests/kvm/scripts/qemu-ifup-switch',downscript='no' -m 2048 -smp 2 -cpu qemu64 -soundhw ac97 -vnc :0,password -rtc-td-hack -M rhel5.5.0 -usbdevice tablet -no-kvm-pit-reinjection

Comment 5 RHEL Program Management 2011-01-11 20:28:56 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 6 RHEL Program Management 2011-01-11 22:55:00 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.