Previous 1 2 3 4 5 Next 65 Replies Latest reply: Jan 23, 2015 12:08 AM by varrt Go to original post
  • barlow36 Level 1 Level 1 (0 points)

    Hi Tron,

    thanks for your help. It does work but it doesn't create usr/local/bin.

    I'm not so familiar with development maybe there is a easier way to geth rdeskop with smartcard access?

    Thanks for your helpa again

  • TRON Level 1 Level 1 (20 points)

    barlow36,

    I've posted an installer here:

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

     

    It will place my pre-compiled rdesktop application in your /usr/local/bin/ folder and the pre-compiled keymaps folder in the /usr/local/share/rdesktop/ folder.

     

    You should then be able to run rdesktop from the Terminal application, as long as you have the X11 application installed on your Mac.  The most recent Macs do not have X11 installed, so you must install it separately:

    http://xquartz.macosforge.org/landing/

     

    Good luck!

  • barlow36 Level 1 Level 1 (0 points)

    Hi Tron,

    thanks it works fine. For smartcard use do I need to do more?

    Thanks

  • Ian Cheong Level 1 Level 1 (30 points)

    I use the macports version for smartcard support. I use it because I use lots of other macports packages, and it is an easy way to get packages that work, usually without any problems. The macports rdesktop may need manual tweaking until the port maintainer fixes bugs in it. Have logged a bug fix request with my tweaks listed in post here of 2nd May. Works fine with smartcard on 10.6.8 and 10.5.8. Current version is 1.7.1 as of last month.

     

    To use macports, read http://www.macports.org/install.php

     

    Then installation of most ports is simply

    $ sudo port install <portname>

     

    In this case if it is properly patched,

    $ sudo port install rdesktop +smartcard

     

    If it is not patched and generates errors, the fixes are listed in my post of 2nd May. To manually fix, I have used 2 ways.

    a. download appropriate source version, unpack and edit the source file, replace macports source file with edited version.

    b. use macports to download source, find and edit source file

     

    Either way, run the phases of macports build one at a time:

    http://guide.macports.org/#reference.phases

     

    eg (sudo is not needed for all but makes live easier to leave it in)

    $ sudo port fetch rdesktop +smartcard

    $ sudo port checksum rdesktop +smartcard

    $ sudo port extract rdesktop +smartcard

     

    If errors, then fix as per my listed tweaks. The major part is to locate the source file and delete the listed lines or replace it with an edited version.

     

    $ sudo port configure rdesktop +smartcard

    $ sudo port build rdesktop +smartcard

    $ sudo port destroot rdesktop +smartcard

     

    Commands I use to connect using ssh tunnel (always recommended for security - requires ssh to be set up on server, preferably with RSA key authentication):

    $ ssh <username>@<sshserverexternalIPaddress> -L 3389:<internalipofserver>:3389

    $ rdesktop -x m -r scard -r clipboard:"CLIPBOARD" -g 1280x1024 -u<username> localhost

  • TRON Level 1 Level 1 (20 points)

    barlow36,

    After rdesktop (with smartcard support) has been installed, you need to invoke the smartcard support when you execute it, as indicated by Ian Cheong.  When you run rdesktop, just include the "-r scard" option, just like the last line of Ian Cheong's post:

     

    $ rdesktop -r scard REMOTE.SERVER.ADDRESS

     

    (where REMOTE.SERVER.ADDRESS is the address of the terminal you're trying to connect to)

     

    If you just type "rdesktop" in the Terminal application and press "enter", you should get a list of rdesktop options and how to invoke them.

  • varrt Level 1 Level 1 (0 points)

    Hi!

     

    Maybe you can help me.

     

    I trying to use smartcard in rdp session, but can't.

     

    What I did:

     

     

    I install rdesktop 1.8.3 with support of smartcards, plus opensc and drivers of eToken (SAC 8.2 for mac)

    I can see token and certs in special tool from SAC and in keychain.

    pcsctest print:

    bash-3.2# pcsctest

     

    MUSCLE PC/SC Lite Test Program

     

    Testing SCardEstablishContext    : Command successful.

    Testing SCardGetStatusChange

    Please insert a working reader   : Command successful.

    Testing SCardListReaders         : Command successful.

    Reader 01: Aladdin eToken PRO USB 72K Java 00 00

    Enter the reader number          : 1

    Waiting for card insertion    

                                     : Command successful.

    Testing SCardConnect             : Command successful.

    Testing SCardStatus              : Command successful.

    Current Reader Name              : Aladdin eToken PRO USB 72K Java 00 00

    Current Reader State             : 0x34

    Current Reader Protocol          : 0x1

    Current Reader ATR Size          : 14 (0xe)

    Current Reader ATR Value         : 3B D5 18 00 81 31 FE 7D 80 73 C8 21 10 F4

    Testing SCardDisconnect          : Command successful.

    Testing SCardReleaseContext      : Command successful.

    Testing SCardEstablishContext    : Command successful.

    Testing SCardGetStatusChange

    Please insert a working reader   : Command successful.

    Testing SCardListReaders         : Command successful.

    Reader 01: Aladdin eToken PRO USB 72K Java 00 00

    Enter the reader number          : 1

    Waiting for card insertion    

                                     : Command successful.

    Testing SCardConnect             : Command successful.

    Testing SCardStatus              : Command successful.

    Current Reader Name              : Aladdin eToken PRO USB 72K Java 00 00

    Current Reader State             : 0x34

    Current Reader Protocol          : 0x1

    Current Reader ATR Size          : 14 (0xe)

    Current Reader ATR Value         : 3B D5 18 00 81 31 FE 7D 80 73 C8 21 10 F4

    Testing SCardDisconnect          : Command successful.

    Testing SCardReleaseContext      : Command successful.

     

    PC/SC Test Completed Successfully !

     

    pcscd is started as a demon

    bash-3.2# ps -ef | grep pcsc

        0 20935     1   0  3:53   ??         0:03.48 /usr/sbin/pcscd

        0 24183 17210   0  9:22   ttys002    0:00.00 grep pcsc

    bash-3.2#

     

    but!! but pcsctool doesn't see any bundles

    bash-3.2# pcsctool

    Select the approprate token driver:

    -----------------------------------

    -----------------------------------

    No services are present - exiting.

     

    As I understand rdesktop get info about smartcards from pcsc-lite lib

     

    bash-3.2# pkcs15-tool -c

    Using reader with a card: Aladdin eToken PRO USB 72K Java 00 00

    Failed to connect to card: Card is invalid or cannot be handled

    bash-3.2#

     

     

    I need to get authentication by scard (eToken) on gateway and login on workstation.

     

     

    When I connect to server

    bash-3.2# sudo /usr/local/bin/rdesktop -r scard 2xx.1xx.17.1xx

    Autoselected keyboard map ru

    WARNING: Remote desktop does not support colour depth 24; falling back to 16

     

    No errors.

     

     

    Help me please. If you have another way to login rdp by smart card on mac - tell me, I will be very grateful

Previous 1 2 3 4 5 Next