{"action":"created","issue":{"url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2918","labels_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2918/labels{/name}","comments_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2918/comments","events_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2918/events","html_url":"https://github.com/FreeRDP/FreeRDP/issues/2918","id":110427187,"number":2918,"title":"Unable to connect through Gateway","user":{"login":"MarcusMoeller","id":1267594,"avatar_url":"https://avatars.githubusercontent.com/u/1267594?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcusMoeller","html_url":"https://github.com/MarcusMoeller","followers_url":"https://api.github.com/users/MarcusMoeller/followers","following_url":"https://api.github.com/users/MarcusMoeller/following{/other_user}","gists_url":"https://api.github.com/users/MarcusMoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcusMoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcusMoeller/subscriptions","organizations_url":"https://api.github.com/users/MarcusMoeller/orgs","repos_url":"https://api.github.com/users/MarcusMoeller/repos","events_url":"https://api.github.com/users/MarcusMoeller/events{/privacy}","received_events_url":"https://api.github.com/users/MarcusMoeller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T11:17:45Z","updated_at":"2015-10-09T08:08:58Z","closed_at":null,"body":"I am trying to connect through a Gateway using this command:\r\n\r\nxfreerdp cpub-....rdp /w:1600 /h:1200 /u:myuser /d:d.ethz.ch /p:\"...\" /gu:myuser /gd:mydomain /gp:\"...\" /gt:rpc\r\n\r\nwhich leads to the following error:\r\n\r\n[13:10:52:909] [23120:23121] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpdr\r\n[13:10:52:909] [23120:23121] [INFO][com.freerdp.client.common.cmdline] - loading channel rdpsnd\r\n[13:10:52:909] [23120:23121] [INFO][com.freerdp.client.common.cmdline] - loading channel cliprdr\r\n[13:11:52:188] [23120:23121] [ERROR][com.freerdp.core.gateway.rpc] - unexpected RTS PDU: Expected CONN/C2\r\n[13:11:52:188] [23120:23121] [ERROR][com.freerdp.core.gateway.tsg] - tsg_check failure\r\n[13:11:52:188] [23120:23121] [ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure\r\n[13:11:52:188] [23120:23121] [ERROR][com.freerdp.core] - freerdp_set_last_error ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x2000C]\r\n[13:11:52:188] [23120:23121] [ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure\r\n[13:11:52:188] [23120:23121] [ERROR][com.freerdp.client.x11] - Authentication only, exit status 1\r\n"},"comment":{"url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/comments/146792178","html_url":"https://github.com/FreeRDP/FreeRDP/issues/2918#issuecomment-146792178","issue_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2918","id":146792178,"user":{"login":"MarcusMoeller","id":1267594,"avatar_url":"https://avatars.githubusercontent.com/u/1267594?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcusMoeller","html_url":"https://github.com/MarcusMoeller","followers_url":"https://api.github.com/users/MarcusMoeller/followers","following_url":"https://api.github.com/users/MarcusMoeller/following{/other_user}","gists_url":"https://api.github.com/users/MarcusMoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcusMoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcusMoeller/subscriptions","organizations_url":"https://api.github.com/users/MarcusMoeller/orgs","repos_url":"https://api.github.com/users/MarcusMoeller/repos","events_url":"https://api.github.com/users/MarcusMoeller/events{/privacy}","received_events_url":"https://api.github.com/users/MarcusMoeller/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T08:08:58Z","updated_at":"2015-10-09T08:08:58Z","body":"I digged a bit deeper and it does not seem to be related to the gateway directly but to the connection broker.\r\n\r\nWhen I try to connect using the rdp file like:\r\n\r\nxfreerdp cpub-TST_Desktop-TST_Desktop-CmsRdsh.rdp /u:myuser /d:mydomain /p:\"mypass\" /gu:mygwuser /gd:mygwdomain /gp:\"mygwpass\" /gt:rpc\r\n\r\nI got the error above. The connection does not seem to go through the gateway.\r\n\r\nWhen I connect directly to the collection:\r\n\r\nxfreerdp /g:mygw  /u:myuser /d:mydomain /p:\"\" /gu:myuser /gd:mydomain /gp:\"\" /v:collectionname\r\n\r\nit works. I am using latest master btw."}}