From unknown Fri Jun 12 00:18:30 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#218: [X2Go-Dev] Bug#218: x2gobroker: Hostname is used instead of FQDN
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 218-quiet@bugs.x2go.org
Resent-To: Anders Bruun Olsen <abo@dsl.dk>
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 22 May 2013 16:03:03 +0000
Resent-Message-ID: <handler.218.U218.1369238018599@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 218
X-X2Go-PR-Package: x2gobroker
X-X2Go-PR-Keywords: confirmed
Received: via spool by 218-submitter@bugs.x2go.org id=U218.1369238018599
          (code U ref 218); Wed, 22 May 2013 16:03:03 +0000
Received: (at 218-submitter) by bugs.x2go.org; 22 May 2013 15:53: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.0 required=5.0 tests=URIBL_BLOCKED autolearn=ham
	version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir (Postfix) with ESMTPS id 041835DB13;
	Wed, 22 May 2013 17:53:37 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 1B719BCB;
	Wed, 22 May 2013 17:53:37 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id E3C753BB5A;
	Wed, 22 May 2013 17:53:36 +0200 (CEST)
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 d1i1tJX1-8A2; Wed, 22 May 2013 17:53:36 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 8B4EE3BB88;
	Wed, 22 May 2013 17:53:36 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 679363BB5A;
	Wed, 22 May 2013 17:53:36 +0200 (CEST)
Received: by grimnir.das-netzwerkteam.de (Postfix, from userid 33)
	id A49E63BB88; Wed, 22 May 2013 17:53:35 +0200 (CEST)
Received: from m-047.informatik.uni-kiel.de (m-047.informatik.uni-kiel.de
 [134.245.254.47]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Wed, 22 May 2013 17:53:35 +0200
Message-ID: <20130522175335.95934gesn8bjsbun@mail.das-netzwerkteam.de>
X-Priority: 3 (Normal)
Date: Wed, 22 May 2013 17:53:35 +0200
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 218@bugs.x2go.org
Cc: control@bugs.x2go.org, 218-submitter@bugs.x2go.org
References:  <CAFJm-UOuSiJTJY51JwFdTSGnU0hruyAHS-T1qGNmEyW181VBBw@mail.gmail.com>
In-Reply-To:  <CAFJm-UOuSiJTJY51JwFdTSGnU0hruyAHS-T1qGNmEyW181VBBw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed;
 boundary="=_49i2q0ipnr3z";
 protocol="application/pgp-signature";
 micalg="pgp-sha1"
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.3.4)

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

--=_49i2q0ipnr3z
Content-Type: text/plain;
 charset=UTF-8;
 DelSp="Yes";
 format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

tag #218 confirmed
thanks

Hi Anders,

On Mi 22 Mai 2013 15:30:29 CEST Anders Bruun Olsen wrote:

> Package: x2gobroker
> Version: 0.0.2.2
>
> I am setting up a loadbalanced cluster of x2go servers with a broker in
> front. There are thinclients on the LAN accessing the broker/cluster and
> there will be users logging on from outside. Users on the LAN are served
> term1.example.lan and term2.example.lan, whereas users from outside get
> term1.example.com and term2.example.com. So far everything has worked fine,
> but now I have started testing outside access, which does not work.
> x2gobroker (with autologin) tells x2goclient to access term1 or term2 - it
> leaves out the rest of the domain name. This works fine on the LAN, because
> the machines there have example.lan set as their searchdomain, but machines
> from outside can't resolve "term1" to "term1.example.com" and need to be
> given the FQDN. Please note that the FQDNs is specified in the
> sessionprofiles, but x2goclient still tries to resolve the short version of
> the name.

A fix for this is not so trivial, as it seems. The ,,wrong'' hostname  
is produced by x2golistsession on the server that the x2gobroker-agent  
gets executed on.

Obviously, your external clients call the X2Go Session Broker. The  
session broker knows a list of possible hosts for sending the  
select_session query to. The server that gets asked responds with a  
hostname from the X2Go session DB, that is not necessarily what you  
configured in X2Go Session Broker's x2gobroker-sessionprofiles.conf.

So, what is needed is a backwards mapping between the result that gets  
returned by x2gobroker-agent (i.e. the returned server name /  
hostname) back to the FQDN hostnames configured in X2Go Session  
Broker. The mapping is not bijective here, it is more about guessing  
and shooting blindfolded.

/me scratches his head on the best approach for this...

Mike




-- 

DAS-NETZWERKTEAM
mike gabriel, 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.xfb

--=_49i2q0ipnr3z
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Unterschrift
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJRnOn/AAoJEJr0azAldxsxWN8P+wX3Ss+RclJDXdxj4njmdFCS
GbZiLrk5FyYtDu2JImTiwFvKgnh6Tn9yKMF+Q8/zWHwzrzWRbKLZFP/h10yieec2
A6e/cdgx9sr9gpaOCsuEWtenLw5ukbPznn3X5PsSAEG3n6zmpS+0en/hso97IqLt
N8F9OHXaVv/iuykdemQ8deZKRN+rOEcMlyWxuimxfJgdtPxwKEYFwg4lImV8oyz7
NhZAnJJ8pipbrCAtriI+eiQp4AxeRi1zFqLI0JWd8lcrGOEmvWknFJWKGyhtR0ue
Ck4zHt4bEPge2Kv2/1HYCW+LxRuXkeSqU+hR3HQfDjDSR+Ihxi3miq1JU1yVU7+G
o2SuyMPJmlPAP9MfcytiWZWRFB53SwjvKowg9K0pmsUEHzRu8qx5AQWOb7S35Afk
tOzCqY39yVueOzVwAbDPOrSy/LzQY+jtcpyGIIsWQBvDMRyDFfX7X+7sWB5mjqaL
66URkNssjwkdNi8XQEtOm7CRFMWqQVxFpE15UX5HNP5Ws5hxeBOgIJ3zH4xIGj3+
GeokUt8d2E/u3dOsFf1Ysz8652W1vp4mCvXdGVn8fRpE/rjSWflJK8E8A3ioPSzt
2jaS90jDKNvfSiDHQ5olWgi7nOuqw9uBxkD3Uy3voIZvD0RoRM2VStiCD1WOSHN2
XYqg5FYi0jf+vScbv1eF
=mmgW
-----END PGP SIGNATURE-----

--=_49i2q0ipnr3z--
