I tried using rdesktop to connect to windows machines.
However it seems that after compiling the 64 bit (with smartcard support of course) binary, and using pcsc-lite, the remote desktop shows me the a PIN prompt. Even if I put in the correct PIN it does not login.
After wasting alot of time I found out that the 32bit version did work. So I setup a chroot and builded rdesktop and libpcsclite.so.1 for 32bit.
After copying those over to my 64 bit environment I can login using my PIN code.
So I am not really sure if this is an rdesktop or a pcsc-lite issue and wonder if there are other people who have the same issue(I have seen one for ubuntu).
rdesktop: 1.7.0 (with smartcard)
pcsc-lite: 1.6.6 (with usb)
OS: Gentoo Linux
gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5)
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
I you need any more information please let me know and I will be happy to provide it to you.