X2Go Bug report logs - #140
x2gobroker: agent-query-mode in sessionprofiles ignored

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, 6 Mar 2013 14:33:01 UTC

Severity: normal

Tags: wontfix

Found in version 0.0.0.6

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

Bug is archived. No further changes may be made.

Full log


Message #17 received at control@bugs.x2go.org (full text, mbox, reply):

Received: (at control) by bugs.x2go.org; 6 Mar 2013 17:07:31 +0000
From mike.gabriel@das-netzwerkteam.de  Wed Mar  6 18:07:31 2013
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir (Postfix) with ESMTPS id 490FB5DB0D;
	Wed,  6 Mar 2013 18:07:31 +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 18C7E101;
	Wed,  6 Mar 2013 18:07:31 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 101053B933;
	Wed,  6 Mar 2013 18:07:31 +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 nMk1LPP1jxO1; Wed,  6 Mar 2013 18:07:30 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id DF2073BA89;
	Wed,  6 Mar 2013 18:07:30 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id B5EE33B895;
	Wed,  6 Mar 2013 18:07:30 +0100 (CET)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	grimnir.das-netzwerkteam.de
X-Spam-Flag: NO
X-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00,
	MIME_QP_LONG_LINE,URIBL_BLOCKED autolearn=ham version=3.3.1 running as userid=
X-Spam-Level: 
X-Spam-Bayes-Score: 0.0000
Received: by grimnir.das-netzwerkteam.de (Postfix, from userid 33)
	id 506A13BA89; Wed,  6 Mar 2013 18:07:30 +0100 (CET)
Received: from fylgja.das-netzwerkteam.de (fylgja.das-netzwerkteam.de
 [78.46.204.97]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Wed, 06 Mar 2013 18:07:30 +0100
Message-ID: <20130306180730.1027260dp4d6wdsi@mail.das-netzwerkteam.de>
X-Priority: 3 (Normal)
Date: Wed, 06 Mar 2013 18:07:30 +0100
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Anders Bruun Olsen <abo@dsl.dk>, 140@bugs.x2go.org
Cc: control@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#140: x2gobroker: agent-query-mode in
 sessionprofiles ignored
References:  <CAFJm-UP+K-ND-5syc0urRGxUr5EzizeKnuDzoaoDrcUGuyD2Uw@mail.gmail.com>
In-Reply-To:  <CAFJm-UP+K-ND-5syc0urRGxUr5EzizeKnuDzoaoDrcUGuyD2Uw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed;
 boundary="=_206d7519cyqa";
 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 #140 wontfix
thanks

Hi Anders,

On Mi 06 Mär 2013 15:22:52 CET Anders Bruun Olsen wrote:

> Package: x2gobroker
> Version: 0.0.0.6
>
> Having agent-query-mode=SSH set in a profile in
> /etc/x2go/broker/x2gobroker-sessionprofiles.conf is ignored. Instead
> default-agent-query-mode from /etc/x2go/x2gobroker.conf is used.
> When trying to login with x2goclient, this is logged on x2gobroker:
>
> 2013-03-06 15:17:23,997 - broker - DEBUG -
> base_broker.X2GoBroker.get_agent_query_mode(): found
> default-agent-query-mode in global config section: local
>

Indeed the option agent-query-mode is ignored in  
x2gobroker-sessionprofiles.conf, as it is only available in the  
backend sections of x2gobroker.conf.

The more generic agent-query-mode definitely is SSH. The mode LOCAL is  
only sensible if the broker serves a single multi-node farm and is  
part of that farm (or at least has access to the session DB of that  
single farm). One possible use case is the Debian Edu / Skolelinux  
setup.

And: to make the broker install out-of-the-box I have to set the  
default to LOCAL, though.

Please add agent-query-mode to the inifile backend in x2gobroker.conf  
or set the global option default-agent-query-mode to SSH.

> I see that the new autologin (which works) uses self.get_profile_broker()
> instead of self.config to access settings. This might be the source of the
> problem?

I could not find the usage of self.get_profile_broker() in  
self.get_agent_query_mode(). If I missed something, can you point me  
to the exact line?

Greets,
Mike



-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
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: Fri Apr 19 08:02:09 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.