X2Go Bug report logs - #218
x2gobroker: Hostname is used instead of FQDN

version graph

Package: x2gobroker; Maintainer for x2gobroker is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2gobroker is src:x2gobroker.

Reported by: Anders Bruun Olsen <abo@dsl.dk>

Date: Wed, 22 May 2013 13:33:02 UTC

Severity: normal

Tags: confirmed, pending

Found in version 0.0.2.2

Fixed in version 0.0.2.3

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

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)
[Message part 1 (text/plain, inline)]
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
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Apr 18 23:49:25 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.