How to connect to Windows with xfreerdp and smartcard




I am able to connect to Windows 2008 R2 server from Linux Mint using:

$
					xfreerdp -f -u <username on windows> -d <windows
					Domain> 192.168.1.1

but I want to connect to that server using Smartcard. Another try with:

$
					xfreerdp -f --plugin rdpdr --data:smartcard -- 192.168.1.1

didn't make success. What is right syntax for USB Smartcard reader 'Gemalto GemPC Twin 00 00'

$
					lsusb
Bus
					002 Device 002: ID 08e6:3437 Gemplus GemPC Twin SmartCard Reader




1 Answer


You have to compile xfreerdp source code with

cmake -DWITH_PCSC=ON -DWITH_SSE2=ON .

To check is everything OK with smart cards and USB reader

rdesktop -f -d YourDomain -u username -r scard:"Gemalto PC Twin Reader 00 00" x.x.x.x

To start xfreerdp in full screen mode

xfreerdp /f /d:yourDomain /smartcard:"Gemalto PC Twin Reader 00 00" /v:x.x.x.x

This works for Windows 2003.

For Windows 2008 R2 you have to start xfreerdp with -sec-nla switch

xfreerdp -sec-nla /f /d:YourDomain /smartcard:"Gemalto PC Twin Reader 00 00" /v:IP address