Hide Forgot
Created attachment 481376 [details] Proposed patch Description of problem: Using rdesktop in x86_64 fails to connect, falsely reporting that the SmartCard has been removed (while it hasn't). Version-Release number of selected component (if applicable): rdesktop-1.6.0-8.el6 How reproducible: Always Steps to Reproduce: 1. Try to connect to Windows system using the scard option: /usr/bin/rdesktop -u <uid> -d <domain> -r sound -k fr -g 1280x940 -a 16 -N -z -x l <server> -r scard Actual results: rdesktop reports that the SmartCard has been removed and authentication fails Expected results: Authentication succeeds Additional info: When using scard debug, the following is seen in the logs: SCARD: -> Success (hcard: 0x000092a1 [0x000192a1]) SCARD: SCardBeginTransaction(hcard: 0x000092a1 [0x000092a1]) SCARD: SCardDisconnect(context: 0x0103c674, hcard: 0x000092a1, disposition: 0x00000000) SCARD: -> Success (hcard: 0x0000177f [0x0001177f]) SCARD: SCardBeginTransaction(hcard: 0x0000177f [0x0000177f]) SCARD: SCardDisconnect(context: 0x01037ba1, hcard: 0x0000177f, disposition: 0x00000000) etc. According to this thread upstream: http://thread.gmane.org/gmane.network.rdesktop.devel/3052 PC/SC maintainer points out that the conversions functions scHandleToMyPCSC() and scHandleToServer() are not needed and are actually causing handle corruption in PC/SC. http://thread.gmane.org/gmane.network.rdesktop.devel/3052 "[...] The functions are bogus since they corrupt the handles returned by pcsc-lite. The correction is to completely remove the two functions and use the handles directly(without any conversion function)." The attached patch removes these conversion functions.
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux.
Yes, this have to be included in the next release.
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
A test package of this fix and others is available here: http://people.redhat.com/~ajackson/rdesktop-test/ Please test.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-1276.html