rdesktop with smartcard reader
hi,
I have installed rdesktop 1.6 with smart card support.I have a usb smart card reader which will accept a smart card for login the remote client. Here is scenario, I have plug in the usb smart card reader and invoke pcscd daemon which recognized the smart card.Now i invoke the rdesktop with scard option it recognized the smart card.But when i unplug the usb smart card reader and plug it again(while rdesktop is running) it(rdesktop) does not recognized the smart card.This process work perfectly in Windows but in Linux it does not works. So can any body help me. |
1. start pcscd daemon
/etc/init.d/pcscd restart 2. Get the smart card reader name and number, this command will also make sure that you computer is able to communicate with smart card reader and smart card too. $ 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: SCM SCR 331 00 00 Enter the reader number : 01 Waiting for card insertion : Command successful. Testing SCardConnect : Command successful. Testing SCardStatus : Command successful. Current Reader Name : SCM SCR 331 00 00 Current Reader State : 0x34 Current Reader Protocol : 0x1 Current Reader ATR Size : 22 (0x16) Current Reader ATR Value : 3B DB 96 00 80 B1 FE 45 1F 83 00 31 C0 64 B0 FC 10 00 0F 90 00 0D 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: SCM SCR 331 00 00 Enter the reader number : 01 Waiting for card insertion : Command successful. Testing SCardConnect : Command successful. Testing SCardStatus : Command successful. Current Reader Name : SCM SCR 331 00 00 Current Reader State : 0x34 Current Reader Protocol : 0x1 Current Reader ATR Size : 22 (0x16) Current Reader ATR Value : 3B DB 96 00 80 B1 FE 45 1F 83 00 31 C0 64 B0 FC 10 00 0F 90 00 0D Testing SCardDisconnect : Command successful. Testing SCardReleaseContext : Command successful. PC/SC Test Completed Successfully ! 3. install rdesktop1.6.0 4. use this command to connect to windows desktop using following command. rdesktop -r scard:"SCM SCR 331 00 00"="01" servername that's it boom,boom and boom. |
compile rdesktop with following options
#cd Desktop/rdesktop-1.6.0 #./configure --enable-smartcard -x-includes=/usr/X11/include-x-libraries=/usr/X11/lib #make #make install |
All times are GMT -5. The time now is 08:17 PM. |