From unknown Wed Apr 29 12:22:39 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#781: x2goclient in broker mode with --broker-noauth
Reply-To: Sergey Savko <savko@tophouse.ru>, 781@bugs.x2go.org
Resent-From: Sergey Savko <savko@tophouse.ru>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 04 Feb 2015 10:50:02 +0000
Resent-Message-ID: <handler.781.B.142304691812756@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 781
X-X2Go-PR-Package: x2goclient
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.142304691812756
          (code B); Wed, 04 Feb 2015 10:50:02 +0000
Received: (at submit) by bugs.x2go.org; 4 Feb 2015 10:48:38 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
	autolearn=ham version=3.3.2
X-Greylist: delayed 536 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Wed, 04 Feb 2015 11:48:36 CET
Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id EE7AF5E073
	for <submit@bugs.x2go.org>; Wed,  4 Feb 2015 11:48:36 +0100 (CET)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by m.tophouse.ru (Postfix) with ESMTP id C8BDB46423A
	for <submit@bugs.x2go.org>; Wed,  4 Feb 2015 13:41:36 +0300 (MSK)
Received: from m.tophouse.ru ([127.0.0.1])
	by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10032)
	with ESMTP id U1JqZQO3oShX for <submit@bugs.x2go.org>;
	Wed,  4 Feb 2015 13:41:36 +0300 (MSK)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by m.tophouse.ru (Postfix) with ESMTP id E560A46424E
	for <submit@bugs.x2go.org>; Wed,  4 Feb 2015 13:41:35 +0300 (MSK)
X-Virus-Scanned: amavisd-new at m.tophouse.ru
Received: from m.tophouse.ru ([127.0.0.1])
	by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id 95yjSNL0Xl0S for <submit@bugs.x2go.org>;
	Wed,  4 Feb 2015 13:41:35 +0300 (MSK)
Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85])
	by m.tophouse.ru (Postfix) with ESMTP id 9211546424A
	for <submit@bugs.x2go.org>; Wed,  4 Feb 2015 13:41:35 +0300 (MSK)
Date: Wed, 4 Feb 2015 14:41:35 +0400 (MSK)
From: Sergey Savko <savko@tophouse.ru>
To: submit@bugs.x2go.org
Message-ID: <1445793820.50897.1423046495131.JavaMail.zimbra@tophouse.ru>
In-Reply-To: <1249362733.50203.1423045063015.JavaMail.zimbra@tophouse.ru>
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_50895_1656359125.1423046495129"
X-Mailer: Zimbra 8.0.8_GA_6184 (ZimbraWebClient - GC39 (Linux)/8.0.8_GA_6184)
Thread-Topic: x2goclient in broker mode with --broker-noauth
Thread-Index: 5FGeIuGQmN/z38S7kfGpdOR3YexZdw==

------=_Part_50895_1656359125.1423046495129
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Package: x2goclient
Version: 4.0.3.1
Tag: patch

If x2goclient started in broker mode without pass-through authentication (--broker-noauth) and authentication on the server, x2goclient connected from the user who started the x2goclient. 
That isn't right, we can run x2goclient from any user and connect to the servers as a different user. Just x2goclient can't restore session from suspend.
This patch allows you to start x2goclient from any user on the local system and connect to the server by the user that was entered in the authentication window.

-- 
Yours truly,
Sergey Savko.

------=_Part_50895_1656359125.1423046495129
Content-Type: text/x-patch; name=0001-x2goclient-broker-noauth-patch.patch
Content-Disposition: attachment;
 filename=0001-x2goclient-broker-noauth-patch.patch
Content-Transfer-Encoding: base64

RnJvbSAyNzBlNTgzNWZlNDllMDg0NDg3NGI5Nzc2OWU4ZGUxNTMyYTJhMDM5IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBTZXJnZXlfU2F2a28gPHNhdmtvQHRvcGhvdXNlLnJ1PgpEYXRl
OiBXZWQsIDQgRmViIDIwMTUgMTI6MjQ6MTggKzAzMDAKU3ViamVjdDogW1BBVENIXSB4MmdvY2xp
ZW50IC0tYnJva2VyLW5vYXV0aCBwYXRjaAoKLS0tCiBvbm1haW53aW5kb3cuY3BwIHwgICAgMyAr
KysKIDEgZmlsZSBjaGFuZ2VkLCAzIGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9vbm1haW53
aW5kb3cuY3BwIGIvb25tYWlud2luZG93LmNwcAppbmRleCA1YzM0NmU2Li44Mjg5NzVmIDEwMDY0
NAotLS0gYS9vbm1haW53aW5kb3cuY3BwCisrKyBiL29ubWFpbndpbmRvdy5jcHAKQEAgLTMwMzEs
NiArMzAzMSw5IEBAIHZvaWQgT05NYWluV2luZG93OjpzbG90U2Vzc0VudGVyKCkKIAogICAgIGlm
KGJyb2tlck1vZGUpCiAgICAgeworICAgICAgICBpZiAoY29uZmlnLmJyb2tlck5vQXV0aCkgewor
CSAgICBjb25maWcuYnJva2VyVXNlciA9IGxvZ2luLT50ZXh0KCk7CisgICAgICAgIH0KICAgICAg
ICAgYnJva2VyLT5zZWxlY3RVc2VyU2Vzc2lvbihzZXNzaW9uRXhwbG9yZXItPmdldExhc3RTZXNz
aW9uKCktPmlkKCkpOwogICAgICAgICBjb25maWcuc2Vzc2lvbj1zZXNzaW9uRXhwbG9yZXItPmdl
dExhc3RTZXNzaW9uKCktPmlkKCk7CiAgICAgICAgIHNldFN0YXRTdGF0dXMgKCB0ciAoICJDb25u
ZWN0aW5nIHRvIGJyb2tlciIgKSApOwotLSAKMS43LjEwLjQKCg==
------=_Part_50895_1656359125.1423046495129--
