Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

rDesktop 1.7.0

Hi guys,


in this discussion https://discussions.apple.com/thread/1679181?threadID=1679181 was descriped,

that it’s possible to connect a smartcard from Mac to a Windows Server with the tool „rDesktop 1.6.0“.


Now there’s a new Client-version available: 1.7.0.


So I’d like to ask how to configure it, because it‘s impossible like this:


„cd Desktop/rdesktop-1.7.0 && ./configure --enable-smartcard -x-includes=/usr/X11/include-x-libraries=/usr/X11/lib && make && sudo make install“


Does anyone has some experience with this version?


Best regards

Jan

Posted on May 27, 2011 1:40 AM

Reply
65 replies

Oct 17, 2012 11:56 AM in response to TRON

TRON, thanks for replying.


Yes I am running rdesktop in XQuartz 2.7.4

Did upgrade the smartcard services.


I am using SafeNet Authentication Middleware (for example for VPN), not sure if that might be the source of the problem (but it works for openvpn/Viscosity)


Have upgraded to Mountain Lion but didn´t change much.

Interesting fact: if I retry to connect a couple of times, sometimes it works for 5 minutes or so and then crashes.


What kind of smartcard/token are you using?

Oct 17, 2012 1:59 PM in response to mstryd

mstryd,

My compiled rdesktop is located here:

https://www.box.com/s/urbkt58aqcxmxi5iaidb


note: this file should be copied to /usr/local/bin/ , and will probably require the "keymaps" folder which usually gets installed to /usr/local/share/rdesktop/


A "ZIP" version of my "keymaps" folder can be downloaded here:

https://www.box.com/s/yjkr31jda7rwjntxy3g5


Unzip the "keymaps" folder and copy the entire folder to /usr/local/share/rdesktop/


Good luck!

Oct 17, 2012 2:27 PM in response to TRON

Thanks. Your version works much better. It is still giving the same errors on the console, but it doesn´t stop the RDP when doing so. One catch so far: as soon as the error appears the smartcard redirection into the target machine doesn´t work. So I can´t use it within the RDP. Just a minor glitch for me, though.


Do you have the errors in the console as well? Do you use SC redirection in RDP?


I guess I need to learn gdb and find out what is really going wrong.

Oct 18, 2012 4:50 AM in response to mstryd

mstryd,

I'm not seeing any errors in the console. The only output I get is:

Autoselected keyboard map en-us


I do use scard redirection, and it works for "some" purposes. I'm able to log-in to the remote server (Windows Server 2003, 64-bit) using my smart card, but when I use MS Outlook in the remote session, I'm not able to use the smart card certificates to digitally sign emails. However, I am able to use the smart card certificates to log-in to secure sites in Internet Explorer in the remote session.

Nov 26, 2012 10:41 AM in response to TRON

Hy Tron,


could we contact elsewhere?

I would like to offer a Business Deal with you?

Are you interested?


PM is disabled here. . :-(


Regards from Germany


Alex

May 2, 2013 4:34 AM in response to jan0k

Have been playing with macports rdesktop +smartcard on Snow Leopard and Leopard. rdesktop 1.7.1 build fell over. rdesktop 1.6 rev 83402 seemd to have stabiliy problems. So have been fiddling with 1.7.1.


Minimal fix to get rdesktop 1.7.1 + smartcard to build. Seems to still recognise smart card at least partially for SafeSign token administration utility


1. fudge to non-existent lib64 problem with:


     $ sudo ln -s /opt/local/lib /opt/local/lib64


2. comment out part with missing symbols in scard.o. See diff file content:


--- 1.7.1-src/scard.c          2011-12-07 19:49:44.000000000 +1000

+++ irc-1.7.1-works/scard.c          2013-05-02 20:22:05.000000000 +1000

@@ -2152,7 +2152,9 @@

           {

                     /* Translate to local encoding */

                     dwControlCode = (dwControlCode & 0x3ffc) >> 2;

-                    dwControlCode = SCARD_CTL_CODE(dwControlCode);

+/*IRC try rid of this

+dwControlCode = SCARD_CTL_CODE(dwControlCode);

+*/

           }

           else

           {

@@ -2197,6 +2199,7 @@

                     DEBUG_SCARD(("SCARD: -> Success (out: %d bytes)\n", (int) nBytesReturned));

           }

 

+/* IRC try rid of this

#ifdef PCSCLITE_VERSION_NUMBER

           if (dwControlCode == SCARD_CTL_CODE(3400))

           {

@@ -2214,6 +2217,7 @@

                     }

           }

#endif

+*/

 

           out_uint32_le(out, nBytesReturned);

           out_uint32_le(out, 0x00000004);


There is a reference to removing definition of SCARD_CTL_CODE in 2005 revisions of MacOS Smart Card Services.

http://smartcardservices.macosforge.org/trac/browser/releases/Apple/OSX-10.7.0/S martcardCCID-55000/ccid/ccid/ChangeLog

Jun 7, 2013 12:32 PM in response to barlow36

barlow36,

It looks like you may not have the XCode Command Line Tools installed. XCode is a free download from the Mac App store, but the Command Line Tools is a separate update/download after XCode has been installed (https://developer.apple.com/downloads/index.action)


After XCode and its Command Line Tools have been installed, restart your Mac and try again.


On the other hand, you can get a pre-compiled version from my online-links given above.

rDesktop 1.7.0

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.