Re: Card attributes gets lost through RDP session with rdesktop

Mican Jindrich <[email protected]> Wed, 8 Apr 2015 17:19:52 +0000
Newsgroups gmane.network.rdesktop.user
Message-ID <D544AF128F9EFA479C7BA255E8861E52527AB9@LGEXCHANGE2010.intern.local>
--===============1487388445521495922==
Content-Language: de-DE
Content-Type: multipart/alternative;
	boundary="_000_D544AF128F9EFA479C7BA255E8861E52527AB9LGEXCHANGE2010int_"

--_000_D544AF128F9EFA479C7BA255E8861E52527AB9LGEXCHANGE2010int_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

well, it is taking bit longer than expected with Cryptovision, I am still w=
aiting for trial to even test it. Have someone solved similar situation in =
another way?

Thanks

Henry

Von: Mican Jindrich [mailto:[email protected]]
Gesendet: Freitag, 27. M=E4rz 2015 09:34
An: Robin Jonsson; [email protected]
Betreff: Re: [rdesktop-users] Card attributes gets lost through RDP session=
 with rdesktop

Hello Robin,

thank you very much for your reply! I am happy that someone finally gave me=
 somewhere to look while I have already checked tens if not over hundred Go=
ogle search result... (I am pro in Windows servers, their server apps etc, =
but linux-windows communication is kind of new to me)

I will try it out and will let know if it will work.

Sadly even when it will work, I have to find solution which won't require h=
igh investments... and I am not sure about prices of Cryptovision.

Thank you again!

Henry


Von: Robin Jonsson [mailto:[email protected]]
Gesendet: Freitag, 27. M=E4rz 2015 09:18
An: Mican Jindrich; [email protected]<mailto:rdesktop-us=
[email protected]>
Betreff: Re: [rdesktop-users] Card attributes gets lost through RDP session=
 with rdesktop

Hello Henry,

I had somewhat of the same issue.

I had a setup of an IGEL Thin Client with an OmniKey 3121 reader from which=
 I connected via rDesktop to a Windows 7 x64 Client. The card and the reade=
r showed up in Windows and seemed fine until I actually tried to read somet=
hing. I just got a single flash on the LED and then the software reading hu=
ng (certificate export in certmgr.msc or whatever) until the card was remov=
ed. Connecting the reader directly to the Windows 7 x64 worked perfectly. S=
o did Windows 7 x64 -> Windows 7 x64 SC RDP redirect. So the issue was Linu=
x + PC/SC + rdesktop + M$ compatibility related.

Installing Cryptovison sc/interface 6.1.6 on Windows solved my issue.

I had some help from Ludovico Rousseau, the main developer of the PC/SC dae=
mon, troubleshooting the rDesktop -> PC/SC hook chain, which turned out to =
be fine. Cryptovision was very accommodating regarding Trial licenses.

Cheers,
Robin

Fr=E5n: Mican Jindrich <[email protected]<mailto:Jindrich.Mican@lg=
nexera.at>>
Datum: 2015March27Friday 08:42
Till: "[email protected]<mailto:[email protected]=
rceforge.net>" <[email protected]<mailto:rdesktop-users@=
lists.sourceforge.net>>
=C4mne: [rdesktop-users] Card attributes gets lost through RDP session with=
 rdesktop

Hello,

I know that this is just slightly related topic to rdesktop - it might be p=
roblem with it or even pcsc, still due to having no idea what to do next, I=
 am writing even here to ask if they do not know solution or did not have s=
imilar experience:

I am using openthinclient to get mini-image on thinclients which then conne=
ct through RDP to Windows platform. Connector is rdesktop, provider of smar=
tcard drivers - REINER driver + PCSC-Lite.
I have moved onward with everything... made rdesktop 1.8.3 and pscs-lite 1.=
8.13 for my dev-site but it seems that it did not work as I have expected. =
(packages for TCO are remade DEB packages - just for info)

But I have problems with Smartcard reader from REINER SCT - Cyberjack e-com=
 plus which does not simply work even with its own drivers, that are provid=
ed on web-site. I was trying older rdesktop aswell as the new one I have ma=
de, same for pcsc-lite including latest drivers from Reiner...

RDP destination is Windows 2008 R2 SP1 with Reiner SCT SW installed.

On mini client everything works as expected, remote desktop works, USB supp=
ort works, but when I do test of card reader then everything is fine, but I=
 do not see attributes of card in card reader. On thin-client pcscd does se=
e the card and reader.. pcsc_scan confirms that everything works as expecte=
d, but on server side ... attributes of card gets lost (reader itself shows=
 just fine, SW reacts on card being in reader or not).

So, it looks like smartcard redirection gets somewhere wrong, I can send sc=
reenshots with one of testing applications being not able to receive card a=
ttributes, meaning - smartcard redirection goes wrong. I noticed the differ=
ence with WTS (Windows RDP system) that share there still refers to smartca=
rd as USB device, while with rdesktop (or even FreeRDP) smartcard is being =
refered as PC/SC device only (or at least mostly).

Anyone has such an experience? It looks like compatibility issue or so. Thi=
s is really point where cannot do anything else than check source codes for=
 anything (which I am already doing... but I am getting nowhere)

Thank you very much in advance for any help.

Jindrich Mican alias "Henry"

PS: I have tried this even with laptop with Broadcom cardreader and it was =
the same, I tried Ubuntu 14.04 (64bit)/Debian 7.8 (32bit).. I tried old rde=
sktop, new, old drivers and new etc. Well, most of things that you could th=
ink of, even 3 different applications on host side to check smartcard reade=
r...

--_000_D544AF128F9EFA479C7BA255E8861E52527AB9LGEXCHANGE2010int_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.E-MailFormatvorlage17
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.E-MailFormatvorlage18
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.E-MailFormatvorlage19
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.E-MailFormatvorlage20
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.E-MailFormatvorlage21
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE-AT" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hello,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">well, it is taking bit longer t=
han expected with Cryptovision, I am still waiting for trial to even test i=
t. Have someone solved similar situation in another way?<o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Thanks<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Henry<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"DE" style=3D"mso-fareast-language:D=
E-AT">Von:</span></b><span lang=3D"DE" style=3D"mso-fareast-language:DE-AT"=
> Mican Jindrich [mailto:[email protected]]
<br>
<b>Gesendet:</b> Freitag, 27. M=E4rz 2015 09:34<br>
<b>An:</b> Robin Jonsson; [email protected]<br>
<b>Betreff:</b> Re: [rdesktop-users] Card attributes gets lost through RDP =
session with rdesktop<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Hello Robin,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">thank you very much for your re=
ply! I am happy that someone finally gave me somewhere to look while I have=
 already checked tens if not over hundred Google search result&#8230; (I am=
 pro in Windows servers, their server apps
 etc, but linux-windows communication is kind of new to me)<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I will try it out and will let =
know if it will work.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Sadly even when it will work, I=
 have to find solution which won&#8217;t require high investments&#8230; an=
d I am not sure about prices of Cryptovision.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Thank you again!<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Henry<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span lang=3D"DE" style=3D"mso-fareast-language:D=
E-AT">Von:</span></b><span lang=3D"DE" style=3D"mso-fareast-language:DE-AT"=
> Robin Jonsson [<a href=3D"mailto:[email protected]">mailto:Robin.Jons=
[email protected]</a>]
<br>
<b>Gesendet:</b> Freitag, 27. </span><span lang=3D"EN-US" style=3D"mso-fare=
ast-language:DE-AT">M=E4rz 2015 09:18<br>
<b>An:</b> Mican Jindrich; </span><span lang=3D"DE" style=3D"mso-fareast-la=
nguage:DE-AT"><a href=3D"mailto:[email protected]"><span=
 lang=3D"EN-US">[email protected]</span></a></span><span=
 lang=3D"EN-US" style=3D"mso-fareast-language:DE-AT"><br>
<b>Betreff:</b> Re: [rdesktop-users] Card attributes gets lost through RDP =
session with rdesktop<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">Hello H=
enry,&nbsp;</span><span style=3D"font-size:10.5pt;color:black;mso-fareast-l=
anguage:DE-AT"><o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">I had s=
omewhat of the same issue.<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">I had a=
 setup of an IGEL Thin Client with an OmniKey 3121 reader from which I conn=
ected via rDesktop to a Windows 7 x64 Client. The card and the reader showe=
d up in Windows and seemed fine until
 I actually tried to read something. I just got a single flash on the LED a=
nd then the software reading hung (certificate export in certmgr.msc or wha=
tever) until the card was removed. Connecting the reader directly to the Wi=
ndows 7 x64 worked perfectly. So
 did Windows 7 x64 -&gt; Windows 7 x64 SC RDP redirect. So the issue was Li=
nux &#43; PC/SC &#43; rdesktop &#43; M$ compatibility related.<o:p></o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">Install=
ing Cryptovison sc/interface 6.1.6 on Windows solved my issue.<o:p></o:p></=
span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">I had s=
ome help from Ludovico Rousseau, the main developer of the PC/SC daemon, tr=
oubleshooting the rDesktop -&gt; PC/SC hook chain, which turned out to be f=
ine. Cryptovision was very accommodating
 regarding Trial licenses.<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">Cheers,=
<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black">Robin<o=
:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm =
0cm 0cm">
<p class=3D"MsoNormal"><b><span style=3D"color:black">Fr=E5n: </span></b><s=
pan style=3D"color:black">Mican Jindrich &lt;<a href=3D"mailto:Jindrich.Mic=
[email protected]">[email protected]</a>&gt;<br>
<b>Datum: </b>2015March27Friday 08:42 <br>
<b>Till: </b>&quot;<a href=3D"mailto:[email protected]">=
[email protected]</a>&quot; &lt;<a href=3D"mailto:rdeskt=
[email protected]">[email protected]</a>&gt=
;<br>
<b>=C4mne: </b>[rdesktop-users] Card attributes gets lost through RDP sessi=
on with rdesktop<o:p></o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;color:black"><o:p>&n=
bsp;</o:p></span></p>
</div>
<div>
<div>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">Hello,</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">I know th=
at this is just slightly related topic to rdesktop &#8211; it might be prob=
lem with it or even pcsc, still due to having no idea what to do next, I am=
 writing even here to ask if they do not know
 solution or did not have similar experience:</span><span style=3D"color:bl=
ack"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">I am usin=
g openthinclient to get mini-image on thinclients which then connect throug=
h RDP to Windows platform. Connector is rdesktop, provider of smartcard dri=
vers &#8211; REINER driver &#43; PCSC-Lite.</span><span style=3D"color:blac=
k"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">I have mo=
ved onward with everything&#8230; made rdesktop 1.8.3 and pscs-lite 1.8.13 =
for my dev-site but it seems that it did not work as I have expected. (pack=
ages for TCO are remade DEB packages &#8211; just
 for info)</span><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">But I hav=
e problems with Smartcard reader from REINER SCT &#8211; Cyberjack e-com pl=
us which does not simply work even with its own drivers, that are provided =
on web-site. I was trying older rdesktop aswell
 as the new one I have made, same for pcsc-lite including latest drivers fr=
om Reiner&#8230;
</span><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">RDP desti=
nation is Windows 2008 R2 SP1 with Reiner SCT SW installed.
</span><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">On mini c=
lient everything works as expected, remote desktop works, USB support works=
, but when I do test of card reader then everything is fine, but I do not s=
ee attributes of card in card reader.
 On thin-client pcscd does see the card and reader.. pcsc_scan confirms tha=
t everything works as expected, but on server side &#8230; attributes of ca=
rd gets lost (reader itself shows just fine, SW reacts on card being in rea=
der or not).
</span><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">So, it lo=
oks like smartcard redirection gets somewhere wrong, I can send screenshots=
 with one of testing applications being not able to receive card attributes=
, meaning &#8211; smartcard redirection goes
 wrong. I noticed the difference with WTS (Windows RDP system) that share t=
here still refers to smartcard as USB device, while with rdesktop (or even =
FreeRDP) smartcard is being refered as PC/SC device only (or at least mostl=
y).</span><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">Anyone ha=
s such an experience? It looks like compatibility issue or so. This is real=
ly point where cannot do anything else than check source codes for anything=
 (which I am already doing&#8230; but I am getting
 nowhere)</span><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">Thank you=
 very much in advance for any help.</span><span style=3D"color:black"><o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">Jindrich =
Mican alias &#8220;Henry&#8221;</span><span style=3D"color:black"><o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">&nbsp;</s=
pan><span style=3D"color:black"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"color:black">PS: I hav=
e tried this even with laptop with Broadcom cardreader and it was the same,=
 I tried Ubuntu 14.04 (64bit)/Debian 7.8 (32bit).. I tried old rdesktop, ne=
w, old drivers and new etc. Well, most
 of things that you could think of, even 3 different applications on host s=
ide to check smartcard reader&#8230;</span><span style=3D"color:black"><o:p=
></o:p></span></p>
</div>
</div>
</div>
</body>
</html>

--_000_D544AF128F9EFA479C7BA255E8861E52527AB9LGEXCHANGE2010int_--


--===============1487388445521495922==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
--===============1487388445521495922==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
rdesktop-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdesktop-users

--===============1487388445521495922==--