From mike.gabriel@das-netzwerkteam.de  Thu Jan  8 16:12:39 2015
Received: (at 720) by bugs.x2go.org; 8 Jan 2015 15:12:41 +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=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id BA95C5DB53
	for <720@bugs.x2go.org>; Thu,  8 Jan 2015 16:12:39 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 6F9252F52;
	Thu,  8 Jan 2015 16:12:39 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 587C43BB45;
	Thu,  8 Jan 2015 16:12:39 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PEFBj9GZcTPe; Thu,  8 Jan 2015 16:12:39 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 0B4193BAED;
	Thu,  8 Jan 2015 16:12:39 +0100 (CET)
Received: from bifrost.das-netzwerkteam.de (bifrost.das-netzwerkteam.de
 [178.62.101.154]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Thu, 08 Jan 2015 15:12:38 +0000
Date: Thu, 08 Jan 2015 15:12:38 +0000
Message-ID: <20150108151238.Horde.htV_OpO95AQMwsHYccYEYw3@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Matthew Richardson <m.richardson@ed.ac.uk>, 720@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#720: Unrecognized arguments when using
 --broker-krblogin
In-Reply-To: <54AC203F.4050508@ed.ac.uk>
User-Agent: Internet Messaging Program (IMP) H5 (6.2.2)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 178.62.101.154
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101
 Firefox/32.0 Iceweasel/32.0
Content-Type: multipart/signed; boundary="=_sqLQipqShOJ667vZHwW7Tg2";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0

This message is in MIME format and has been PGP signed.

--=_sqLQipqShOJ667vZHwW7Tg2
Content-Type: text/plain; charset=us-ascii; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Matthew,

On  Di 06 Jan 2015 18:49:51 CET, Matthew Richardson wrote:

> I am running x2goclient using the following cmd-line options:
>
> x2goclient --debug --broker-krblogin
> --broker-url=3Dssh://broker.example.com:22/usr/bin/x2gobroker
>
> This returns a suitable session from the broker, but then fails to
> connect, giving an error about invalid arguments:
>
> x2go-DEBUG-../onmainwindow.cpp:2199> Reading 1 session from config file.
> x2go-DEBUG-../onmainwindow.cpp:2803> Starting session via smartcard,
> ssh-agent or kerberos token.
> x2go-DEBUG-../httpbrokerclient.cpp:282> called selectUserSessions
> x2go-DEBUG-../httpbrokerclient.cpp:467> "usage: x2gobroker.orig [-h] [-M
> BROKER_MODE] [-C CONFIG_FILE] [-d] [-i]
>                        [-b BIND_ADDRESS] [-D] [-P PIDFILE] [-L LOGDIR]
>                        [--task BROKER_TASK] [--user USER_NAME]
>                        [--auth-cookie AUTH_ID] [--profile-id PROFILE_ID]
>                        [--backend BROKER_BACKEND]
> x2gobroker.orig: error: unrecognized arguments: echo
> X2GODATAEND:4fc77554-09cf-446a-bd44-1c2abaf8238d
> "
>
> If I run the client without the '--broker-krblogin' option, and
> authenticate to the broker using password or ssh key, this error never
> appears and the connection to the server (from the downloaded session)
> succeeds.
>
> I tried replacing the x2gobroker with a wrapper that calls it via
> strace, and I see the following in the strace output:
>
> execve("/usr/bin/x2gobroker.orig", ["/usr/bin/x2gobroker.orig",
> "--user", "mrichar1", "--authid",
> "f4d2e31c-8438-4cd3-8248-4b35f86e07ff", "--task", "selectsession",
> "--sid", "pool-icewm;", "echo",
> "X2GODATAEND:9c607aa1-a3c3-4c29-a7dc-36847ec8ceb0"], [/* 24 vars */])
>
> I notice that the semi-colon separating the sid value and the subsequent
> command appears inside the sid value quotes, which seems wrong - indeed
> running this as a test gives:
>
> x2gobroker --debug --sid "test;" true
>
> x2gobroker.orig: error: unrecognized arguments: true
>
> Can this quoting be sorted out to allow the use of the --broker-krblogin
> option?


This one's a nasty issue. I will take a look.

Mike


--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x=
fb

--=_sqLQipqShOJ667vZHwW7Tg2
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJUrp5mAAoJEJr0azAldxsxVwwQAIUmDV2uVuKpWFl8F4lAFlUP
+jJxTavJ5TX9cyE0ajygbUS7zNCGvTvChit/l5SD5nRQ5oZ88uMABjwuLWhvXvBN
f57mTyYzS+BJloJ/4A4BMqmDHy3TI2y4DwkVteFIGz5v2ZKgfcskBqLoJa12+rFC
9+B3FXAVIU5xL+lXDN0X3Vg/WFRg3jmXsdCqtFcyKzWkAdpLHpAiMR/d8h3jB9xY
to4WxuyGTAWz2qbRgPgv2iD4cK52W3Z0DIvs1zgFPwjCsUWkX5sTpJN7RbcKz0mW
gpJN9CeQCwOXb6MQhAazuUU0f5FkobpwgVbtegGTw37vOlmJ7hbgwvAtXsFEVcO0
UVe5+Tjy7p72C2CnjuV9QltqsseimA+IHrWggkYIhCBj4bH4UbVfJsYp0D3xiFzV
47DAp1+JoY4ZRyXsDhfvrB4ShrksA09ERQ6M4kBwRY1oe3l0uBULXBau9AK161sw
Qm+f1Mt6EpygvFiN4cchgIikQRA2oSZDSDgzAPIDv4linXtNJVE9FZf0iWh4McYE
wPW0Y6mttgDYAdLGE50hjl54wCcE3j+TmRxU4Dz2Hfq6SlVYqKJrZSDvcB5SPjqI
pyXqNy6sv14jSjP8EaVulqEHZUCzbtyo3XGeYjMVXZH60KSWMZNiOavNJ4sElYSn
F+SgeKN12UYzcaiXfB1P
=sMwu
-----END PGP SIGNATURE-----

--=_sqLQipqShOJ667vZHwW7Tg2--

