Hello,

I am using FreeRDP from GIT Master branch (from March the 24th) on a Ubuntu
12.04 LTS5 to connect to a Windows 2012 RDS and a 2012 R2 RDS
infrastructure.

On Windows 2012 everything works fine, in particular the smartcard and
printer redirection.
However on 2012-R2 redirecting a smartcard causes problems.

The following tries are to a 2012-R2 broker :

Using no redirections:

user@host:~$ tsocks xfreerdp /tmp/rdp.rdp +toggle-fullscreen /cert-ignore
> +compression /compression-level:2 +heartbeat /d:domain /u:userl
> '/p:password' /sec:nla /kbd:french +auto-reconnect
> /client-hostname:myhostname
> [17:59:40:372] [1817:1818] [INFO][com.freerdp.client.common.cmdline] -
> loading channel rdpdr
> [17:59:40:372] [1817:1818] [INFO][com.freerdp.client.common.cmdline] -
> loading channel rdpsnd
> [17:59:40:373] [1817:1818] [INFO][com.freerdp.client.common.cmdline] -
> loading channel cliprdr
> [17:59:41:204] [1817:1819] [INFO][com.freerdp.channels.rdpdr.client] -
> Loading device service printer (static)
> [17:59:49:701] [1817:1818] [ERROR][com.freerdp.core] -
> ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the
> user logging off his or her session on the server.
> [17:59:49:826] [1817:1818] [ERROR][com.freerdp.core.rdp] -
> DisconnectProviderUltimatum: reason: 3
>

--> everything is OK
I shall also say that redirecting stdout and stderr to a log file works as
expected - this may seem insignificant but you'll see later.

Redirecting a printer:

user@host:~$ tsocks xfreerdp /tmp/rdp.rdp +toggle-fullscreen /cert-ignore
> +compression /compression-level:2 +heartbeat /d:domain /u:userl
> '/p:password' /sec:nla /kbd:french +auto-reconnect
> /client-hostname:myhostname /printer:Officejet_100_Mobile_L411
> [18:02:21:057] [2467:2468] [INFO][com.freerdp.client.common.cmdline] -
> loading channel rdpdr
> [18:02:21:057] [2467:2468] [INFO][com.freerdp.client.common.cmdline] -
> loading channel rdpsnd
> [18:02:21:058] [2467:2468] [INFO][com.freerdp.client.common.cmdline] -
> loading channel cliprdr
> [18:02:22:978] [2467:2471] [INFO][com.freerdp.channels.rdpdr.client] -
> Loading device service printer (static)
> [18:02:22:978] [2467:2471] [INFO][com.freerdp.channels.rdpdr.client] -
> Loading device service printer (static)
> [18:02:26:704] [2467:2471] [INFO][com.freerdp.channels.rdpdr.client] -
> registered device #1: PRN1 (type=4 id=1)
> [18:02:31:794] [2467:2468] [ERROR][com.freerdp.core] -
> ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the
> user logging off his or her session on the server.
> [18:02:31:919] [2467:2468] [ERROR][com.freerdp.core.rdp] -
> DisconnectProviderUltimatum: reason: 3
>

--> everything is OK
(again redirecting stdout and stderr to a logfile works as well)

Redirecting a printer and a smartcard:

user@host:~$ tsocks xfreerdp /tmp/rdp.rdp +toggle-fullscreen /cert-ignore
> +compression /compression-level:2 +heartbeat /d:domain /u:userl
> '/p:password' /sec:nla /kbd:french +auto-reconnect
> /client-hostname:myhostname /printer:Officejet_100_Mobile_L411
> /smartcard:0f14:0038
> [18:02:51:767] [2571:2572] [INFO][com.freerdp.client.common.cmdline] -
> loading channel rdpdr
> [18:02:51:768] [2571:2572] [INFO][com.freerdp.client.common.cmdline] -
> loading channel rdpsnd
> [18:02:51:768] [2571:2572] [INFO][com.freerdp.client.common.cmdline] -
> loading channel cliprdr
> [18:02:52:652] [2571:2579] [INFO][com.freerdp.channels.rdpdr.client] -
> Loading device service printer (static)
> [18:02:52:652] [2571:2579] [INFO][com.freerdp.channels.rdpdr.client] -
> Loading device service smartcard (static)
> [18:02:52:652] [2571:2579] [INFO][com.freerdp.channels.rdpdr.client] -
> Loading device service printer (static)
> [18:02:53:670] [2571:2579] [INFO][com.freerdp.channels.rdpdr.client] -
> registered device #1: SCARD (type=32 id=2)
> [18:02:56:532] [2571:2579] [INFO][com.freerdp.channels.rdpdr.client] -
> registered device #1: PRN1 (type=4 id=1)
> [18:02:56:532] [2571:2579] [INFO][com.freerdp.channels.rdpdr.client] -
> registered device #2: SCARD (type=32 id=2)
> [18:03:13:528] [2571:2572] [ERROR][com.freerdp.core] -
> ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the
> user logging off his or her session on the server.
> [18:03:13:653] [2571:2572] [ERROR][com.freerdp.core.rdp] -
> DisconnectProviderUltimatum: reason: 3
> ^C
>

--> I log fine to the Windows Desktop, however I see that it takes maybe
7-8s longer (every time) than redirecting only the printer.
The problem is that when I disconnect from Windows, the session logs off
normally but the screen remains black. FreeRDP hangs and I have to kill the
process manually.

The second strange thing is that using the same command but redirecting
stdout to a file seems also "broken"!

user@host:~$ tsocks xfreerdp /tmp/rdp.rdp +toggle-fullscreen /cert-ignore
> +compression /compression-level:2 +heartbeat /d:domain /u:userl
> '/p:password' /sec:nla /kbd:french +auto-reconnect
> /client-hostname:myhostname /printer:Officejet_100_Mobile_L411
> /smartcard:0f14:0038 >/tmp/freerdp.log
> ^C
> user@host:~$ cat /tmp/freerdp.log

[nothing  here !!!!!]
>

Not only FreeRDP hangs when disconnecting but the redirection of the file
descriptor of stdout is broken as well!

Regards,
Florent
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to