From unknown Thu Mar 28 17:12:20 2024 X-Loop: git-admin@x2go.org Subject: Bug#140: x2gobroker: agent-query-mode in sessionprofiles ignored Reply-To: Anders Bruun Olsen , 140@bugs.x2go.org Resent-From: Anders Bruun Olsen Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: git-admin@x2go.org Resent-Date: Wed, 06 Mar 2013 14:33:01 +0000 Resent-Message-ID: Resent-Sender: git-admin@x2go.org X-X2Go-PR-Message: report 140 X-X2Go-PR-Package: x2gobroker X-X2Go-PR-Keywords: Received: via spool by submit@bugs.x2go.org id=B.136257977415268 (code B); Wed, 06 Mar 2013 14:33:01 +0000 Received: (at submit) by bugs.x2go.org; 6 Mar 2013 14:22:54 +0000 Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com [207.126.144.125]) by ymir (Postfix) with SMTP id 787B95DB0D for ; Wed, 6 Mar 2013 15:22:54 +0100 (CET) Received: from mail-ie0-f198.google.com ([209.85.223.198]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKUTdRPmlboH7znEqOICUoFysh8gZnXhZM@postini.com; Wed, 06 Mar 2013 14:22:54 UTC Received: by mail-ie0-f198.google.com with SMTP id 17so45777822iea.5 for ; Wed, 06 Mar 2013 06:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dsl.dk; s=google; h=x-received:mime-version:x-received:date:message-id:subject:from:to :content-type; bh=qQ5oCcksKV6wIyAuX0ven4vyUHx8mIC6aHlgGN84fFo=; b=PS7MedZluj1EonKMEX1KwNRxOB/vFm5MhCRnY5eNuhj/4gxfcBStVlo3Tkf37z+D1N OGYFHX8YX1V2skptnzxFsu1iqGqLJ0TxZeq3yXez1kEFcnRloAgpyjNFVy33ld+dRJMe 5BPf0vFS+4ZONpp7/XMt82roHxBPCr1DwHNCY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=qQ5oCcksKV6wIyAuX0ven4vyUHx8mIC6aHlgGN84fFo=; b=CwK/Sl1Y4ANWDWTh/2krPCV2hqk98Lqb+5lpk8ox75NEexusWb5zoKdOStI35LEeA8 Bx8NU4jnUuACwVBCRTPlvleLV1uyuWrLgr8So55vhQznerEhul7fcOPRMtY+nH2NjxzY Hxsmr8CH6qW8TfU8r7C+R7M+YAHqnS8Ugsl3jM3WFB3QHNPKAmAbiWaQeCwve3gQIRsd 0C1+Yo/OBuCwcuMXr68t2UTo3bk00C8e87M1J0+ESCuZOoa3HjUGPcTj8rY353tDWxQr cfwhJp2Qoj5o0xwtxlYiIJNrPKhxFyyEiAwQ0TQEnVcHiJ6qA7kif7Stxf7VEYGln97L RLYA== X-Received: by 10.60.1.225 with SMTP id 1mr22463833oep.141.1362579773061; Wed, 06 Mar 2013 06:22:53 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.1.225 with SMTP id 1mr22463819oep.141.1362579772849; Wed, 06 Mar 2013 06:22:52 -0800 (PST) Received: by 10.182.95.211 with HTTP; Wed, 6 Mar 2013 06:22:52 -0800 (PST) Date: Wed, 6 Mar 2013 15:22:52 +0100 Message-ID: From: Anders Bruun Olsen To: submit@bugs.x2go.org Content-Type: multipart/alternative; boundary=e89a8fb1fbba56d79004d74253dd X-Gm-Message-State: ALoCoQnkBmdSKErveJ/e0cJFX7mBJU/765VxS7BX67zv07a81w22jMjuaZ3q9BEavXjHYwii4vSvPY13rF88cIBoQXmIag4lASyqsSx5dWzhkD+6I/p6jyjufO0LW3Skk85Uu0Ut2C+7Itj0rBSrytY8BOItfyT2lQ== --e89a8fb1fbba56d79004d74253dd Content-Type: text/plain; charset=UTF-8 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 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? -- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature) --e89a8fb1fbba56d79004d74253dd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Package: x2gobroker
Version: 0.0.0.6

Having agent-query-mode=3DSSH set in a profile in /etc/x2go/broker/= x2gobroker-sessionprofiles.conf is ignored. Instead default-agent-query-mod= e 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_brok= er.X2GoBroker.get_agent_query_mode(): found default-agent-query-mode in glo= bal config section: local

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

--
Anders B= ruun Olsen
It-ansvarlig
Det Danske Sprog- og Litteraturselskab
(Society for Dani= sh Language and Literature)
--e89a8fb1fbba56d79004d74253dd-- From unknown Thu Mar 28 17:12:20 2024 X-Loop: git-admin@x2go.org Subject: Bug#140: x2gobroker: agent-query-mode in sessionprofiles ignored Reply-To: Mike Gabriel , 140@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: git-admin@x2go.org Resent-Date: Wed, 06 Mar 2013 17:18:02 +0000 Resent-Message-ID: Resent-Sender: git-admin@x2go.org X-X2Go-PR-Message: followup 140 X-X2Go-PR-Package: x2gobroker X-X2Go-PR-Keywords: Received: via spool by 140-submit@bugs.x2go.org id=B140.136258965122282 (code B ref 140); Wed, 06 Mar 2013 17:18:02 +0000 Received: (at 140) by bugs.x2go.org; 6 Mar 2013 17:07:31 +0000 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 To: Anders Bruun Olsen , 140@bugs.x2go.org Cc: control@bugs.x2go.org References: In-Reply-To: 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) This message is in MIME format and has been PGP signed. --=_206d7519cyqa Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable tag #140 wontfix thanks Hi Anders, On Mi 06 M=C3=A4r 2013 15:22:52 CET Anders Bruun Olsen wrote: > Package: x2gobroker > Version: 0.0.0.6 > > Having agent-query-mode=3DSSH 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 =20 x2gobroker-sessionprofiles.conf, as it is only available in the =20 backend sections of x2gobroker.conf. The more generic agent-query-mode definitely is SSH. The mode LOCAL is =20 only sensible if the broker serves a single multi-node farm and is =20 part of that farm (or at least has access to the session DB of that =20 single farm). One possible use case is the Debian Edu / Skolelinux =20 setup. And: to make the broker install out-of-the-box I have to set the =20 default to LOCAL, though. Please add agent-query-mode to the inifile backend in x2gobroker.conf =20 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 =20 self.get_agent_query_mode(). If I missed something, can you point me =20 to the exact line? Greets, Mike --=20 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.xf= b --=_206d7519cyqa 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) iQIcBAABAgAGBQJRN3fSAAoJEJr0azAldxsxYP8P/05EqLjtFRlJk/rAGemSfwmB k+XZX0xpZ6/GbOUByLxW0duYkB3RwT8Uow1wChurrPDzV1ou6qMRrIrgP9VTAIPJ HDG5uw1VcPoQvxpikZzYxWcd07S868T0oCRViuHWeenwel5Fx6th5x/jLDgeFA2e BcmmbnnNq2RUQ5PdKCMI5u+Q3M7E5Aiv2zVorpdRbHd+DKvM8zssx2+slV2tyRmZ Q7mLZXwb9hmDmmv1i8IYJs2yIFXvih/qMGBiGKnHBXD6A+lQzRVYx8ZC9DKLr3RV 6NedB7dkc7x34GPI2qNrvjI4I5mZgdty/YWPKyiks49LEEHFzXm8tni4LRums43/ uNNWVeu7oqheNBCy95I1Q6JuaPabnu/r8+ikBjx+CG5M9D0YWG0l8gtpkOylMPt5 LgvctwURSlPcI98x1//IcdXn3QWlYzzXQbvwu9CngpDvuI5ZGbRMSPtHTovcuXXu leKEVuNE5HrMjsiCN1WUDOfU1iIodvXtKu8vGsEYRPCAtciBg/EyuSLT4uGp4y1p Adaf0hqStRsMIzG9TQ+rOyLC2NdiFBIZ63y56HDHGNQ3MzMdagjchXCYtCSqcdR/ HUfO8Gi4g3tZv3jtXo44jmvc2s9bRqU/veKFKn7gmsZc3+DWUjS6Yk1zSoTj/q5x 1uDVh0uXAZz9sVXAxoIS =v1lL -----END PGP SIGNATURE----- --=_206d7519cyqa-- From unknown Thu Mar 28 17:12:20 2024 X-Loop: git-admin@x2go.org Subject: Bug#140: x2gobroker: agent-query-mode in sessionprofiles ignored Reply-To: Anders Bruun Olsen , 140@bugs.x2go.org Resent-From: Anders Bruun Olsen Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: git-admin@x2go.org Resent-Date: Wed, 06 Mar 2013 17:18:02 +0000 Resent-Message-ID: Resent-Sender: git-admin@x2go.org X-X2Go-PR-Message: followup 140 X-X2Go-PR-Package: x2gobroker X-X2Go-PR-Keywords: Received: via spool by 140-submit@bugs.x2go.org id=B140.136259013224459 (code B ref 140); Wed, 06 Mar 2013 17:18:02 +0000 Received: (at 140) by bugs.x2go.org; 6 Mar 2013 17:15:32 +0000 Received: from eu1sys200aog104.obsmtp.com (eu1sys200aog104.obsmtp.com [207.126.144.117]) by ymir (Postfix) with SMTP id 83FE95DB0D for <140@bugs.x2go.org>; Wed, 6 Mar 2013 18:15:32 +0100 (CET) Received: from mail-ia0-f200.google.com ([209.85.210.200]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKUTd5tMx4Vkff+1rUsz5/mM4v/+n0YYx+@postini.com; Wed, 06 Mar 2013 17:15:32 UTC Received: by mail-ia0-f200.google.com with SMTP id u20so31039488iag.3 for <140@bugs.x2go.org>; Wed, 06 Mar 2013 09:15:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dsl.dk; s=google; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=VjFn3DqF5YvrgOwU+mnqNE2SuCXhzr/UJHGp8pIeORc=; b=kEekJ0eNKIoZtvPyJaZiUmYDDyF8zt9xKDjVb9M/T3+W78I8hXkY+0KVJ9NAAPz3K2 e4RtSlX8BTleRE1ENg+xoU+ffVqklP9/Mp7SYLgo2LfMdd+RfzeJyHBpTPlhLpfiWveJ mUc9Ah6/0rR0qjZCnrg/+dBaNnrn1K53HAwzo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=VjFn3DqF5YvrgOwU+mnqNE2SuCXhzr/UJHGp8pIeORc=; b=InilAxmfwP0YNPuwY4skUgqQ9Od0VyE50/cXFXgcUQa9/8ZhM41ukzROR1Bfu9HlEN ONJAltaXUvvPP5jGTN5zH2A/fRy9txOEowJ7t5A9xnOVvN5zA1f8DOzlV5uRXNybeCBy CSK/Z1nKXi8Gio7N7YoHgiU4wlChfQwaWSHGtlmIw6ZK/VuEvr9vRwnNvukZtoJA+8j8 EvIp+GaLEhrNWcoYo+m6w4lK0HHWA6+79FI+PaFDR59ZaR4W6luRe0DeqWid6o/vXsns 2piVq+S31s5sfizlOqpDBWt3Te5O5AwnA7Q1gKNR5W67yCEXYgQ8XUwAZYTtGrkmjJ9W 8fiA== X-Received: by 10.182.72.5 with SMTP id z5mr23429975obu.24.1362590127407; Wed, 06 Mar 2013 09:15:27 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.72.5 with SMTP id z5mr23429955obu.24.1362590127043; Wed, 06 Mar 2013 09:15:27 -0800 (PST) Received: by 10.182.95.211 with HTTP; Wed, 6 Mar 2013 09:15:26 -0800 (PST) In-Reply-To: <20130306180730.1027260dp4d6wdsi@mail.das-netzwerkteam.de> References: <20130306180730.1027260dp4d6wdsi@mail.das-netzwerkteam.de> Date: Wed, 6 Mar 2013 18:15:26 +0100 Message-ID: From: Anders Bruun Olsen To: Mike Gabriel Cc: 140@bugs.x2go.org Content-Type: multipart/alternative; boundary=f46d044785337f4c3204d744bc29 X-Gm-Message-State: ALoCoQls6gvIww0HvptCUyaFMHjRxNteKjCG7Y4vQfqmFNivFR3EXaMsLHNgQp4wQP0XwPGiMvXRIZYR27TXinB+D35YvnSWFGFXWlXJ2jwBrxE1bqn2wq6+BuNPuiQaF0yNuSaSURHe2YPTFcBkFV3LFWHjDM7MWg== --f46d044785337f4c3204d744bc29 Content-Type: text/plain; charset=UTF-8 2013/3/6 Mike Gabriel > > Indeed the option agent-query-mode is ignored in > x2gobroker-sessionprofiles.**conf, as it is only available in the backend > sections of x2gobroker.conf. > Right. My mistake. My understanding was "per profile", not "per backend", even though it clearly says per-broker-backend in the comment. Concept confusion I'm afraid. > 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? > In branch 0.0.0.6 from git: abo@x2go-broker:~/x2gobroker/x2gobroker$ grep -n self.get_profile_broker brokers/base_broker.py 478: _profile = self.get_profile_broker(profile_id) 504: _profile = self.get_profile_broker(profile_id) But that was just me trying to figure out why the autologin setting was being picked up from x2gobroker-sessionprofiles.conf while agent-query-mode wasn't. Since the answer is, that it works as intended, this last part is a non-issue as well. -- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature) --f46d044785337f4c3204d744bc29 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= 2013/3/6 Mike Gabriel <mike.gabriel@das-netzwerkteam.de= >
Indeed the option agent-query-mode is ignored in x2gobroker-sessionprofiles= .conf, as it is only available in the backend sections of x2gobroker= .conf.

Right. My mistake. My unde= rstanding was "per profile", not "per backend", even th= ough it clearly says per-broker-backend in the comment. Concept confusion I= 'm afraid.
=C2=A0
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<= br> problem?
I could not find the usage of self.get_profile_broker() in self.get_agent_q= uery_mode(). If I missed something, can you point me to the exact line?
=

In branch 0.0.0.6 from git:
abo@x2go-broker:~/x2gobroker/x2gobroker$ grep -n self.get_profile= _broker brokers/base_broker.py=C2=A0
478: =C2=A0 =C2=A0 =C2=A0 = =C2=A0_profile =3D self.get_profile_broker(profile_id)
504: =C2= =A0 =C2=A0 =C2=A0 =C2=A0_profile =3D self.get_profile_broker(profile_id)

But that was just me trying to figure out w= hy the autologin setting was being picked up from x2gobroker-sessionprofile= s.conf while agent-query-mode wasn't. Since the answer is, that it work= s as intended, this last part is a non-issue as well.

--
Anders Bruun Olsen
It-ansvarlig
Det Dansk= e Sprog- og Litteraturselskab
(Society for Danish Language and Literatur= e)
--f46d044785337f4c3204d744bc29-- From unknown Thu Mar 28 17:12:20 2024 X-Loop: git-admin@x2go.org Subject: Bug#140: x2gobroker: agent-query-mode in sessionprofiles ignored Reply-To: Mike Gabriel , 140@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: git-admin@x2go.org Resent-Date: Wed, 06 Mar 2013 17:42:39 +0000 Resent-Message-ID: Resent-Sender: git-admin@x2go.org X-X2Go-PR-Message: followup 140 X-X2Go-PR-Package: x2gobroker X-X2Go-PR-Keywords: wontfix Received: via spool by 140-submit@bugs.x2go.org id=B140.136259174232430 (code B ref 140); Wed, 06 Mar 2013 17:42:39 +0000 Received: (at 140) by bugs.x2go.org; 6 Mar 2013 17:42:22 +0000 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir (Postfix) with ESMTPS id C98005DB0D; Wed, 6 Mar 2013 18:42:22 +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 9E3121068; Wed, 6 Mar 2013 18:42:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 836AC3B9B1; Wed, 6 Mar 2013 18:42:22 +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 AxEbamzOdibE; Wed, 6 Mar 2013 18:42:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 6187D3BACC; Wed, 6 Mar 2013 18:42:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 4034F3B9B1; Wed, 6 Mar 2013 18:42:22 +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 F008F3BA89; Wed, 6 Mar 2013 18:42:21 +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:42:21 +0100 Message-ID: <20130306184221.208478rhytsrn119@mail.das-netzwerkteam.de> X-Priority: 3 (Normal) Date: Wed, 06 Mar 2013 18:42:21 +0100 From: Mike Gabriel To: Anders Bruun Olsen Cc: 140@bugs.x2go.org, control@bugs.x2go.org References: <20130306180730.1027260dp4d6wdsi@mail.das-netzwerkteam.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_766ipbhioa9p"; 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. --=_766ipbhioa9p Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable close #140 thanks Hi Anders, On Mi 06 M=C3=A4r 2013 18:15:26 CET Anders Bruun Olsen wrote: > 2013/3/6 Mike Gabriel >> >> Indeed the option agent-query-mode is ignored in >> x2gobroker-sessionprofiles.**conf, as it is only available in the backend >> sections of x2gobroker.conf. >> > > Right. My mistake. My understanding was "per profile", not "per backend", > even though it clearly says per-broker-backend in the comment. Concept > confusion I'm afraid. > > >> 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 t= he >>> 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 t= he >> exact line? >> > > In branch 0.0.0.6 from git: > abo@x2go-broker:~/x2gobroker/x2gobroker$ grep -n self.get_profile_broker > brokers/base_broker.py > 478: _profile =3D self.get_profile_broker(profile_id) > 504: _profile =3D self.get_profile_broker(profile_id) > > But that was just me trying to figure out why the autologin setting was > being picked up from x2gobroker-sessionprofiles.conf while agent-query-mod= e > wasn't. Since the answer is, that it works as intended, this last part is = a > non-issue as well. Marking this issue as done, then. Mike --=20 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.xf= b --=_766ipbhioa9p 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) iQIcBAABAgAGBQJRN3/9AAoJEJr0azAldxsx1+IP/RN4fgyNsIrbdnydfdlNOLWp nOlbnZao4yDL4D3r14LC0oLUWtP+XPEg+XkkUnsrLVbxFsthnJexDJqFHMT1EkM9 /AxarSXBcnls6VHD6BVED6nmsTNNs5asxdJC/nSNMi3zOQCuP3gJrFTRlM3fvmHw ENwGdwVra0SX6/5NuK7b5sR89zWUxLZKpxj1XkGRlzSvCRAKLU6MDL/ika1y3BYt Fd8++euKk43IUz0JNrcNGSzwBhXzY0nhhhNJpQ0kxScd4U9OM9hFnMS9VhTJSInu blNKtNwpVuvT9yzEpYCgkGUL+/7cv4n9XR5UJJvElssxXNpfaZclgsqAhWDu48Cg aVoLmc8ccaYFIOHbVmiBTSTudpYJm8VFJMliGh8eT84s542s8e1qQcCfoZlYyIXF kINyhnMbg2ztrHHPlLjVwJHaNoOHLE5bnwuzAqkHmz27XmMhbT8Lm2HwhvY+ZTfZ 8xZ6aJYvM2IqtUEiOgHTfpD+OZT8r/XFSvnzuiIF/qpTsYojiDce+an3JP5iGlaO h7kZecxh3NxbkIKSnnOSShN8uG8ca8WvyE8QS//NHK48vhhDPhLKdTuW3sK0foaA N2MN9MiFMvFxkFfbcshyjug2f6aNl09vAcFGtNW/O4OlEQ/ALWiprwcmxSJtqvap wG3d0T/RFbkMItM0Up7/ =j1yI -----END PGP SIGNATURE----- --=_766ipbhioa9p-- From unknown Thu Mar 28 17:12:20 2024 MIME-Version: 1.0 X-Mailer: MIME-tools 5.502 (Entity 5.502) X-Loop: git-admin@x2go.org From: git-admin@x2go.org (X2Go Bug Tracking System) Subject: Bug#140 closed by Mike Gabriel (Re: [X2Go-Dev] Bug#140: x2gobroker: agent-query-mode in sessionprofiles ignored) Message-ID: References: <20130306184221.208478rhytsrn119@mail.das-netzwerkteam.de> X-X2go-PR-Keywords: wontfix X-X2go-PR-Message: they-closed 140 X-X2go-PR-Package: x2gobroker X-X2go-PR-Source: x2gobroker Date: Wed, 06 Mar 2013 17:42:39 +0000 Content-Type: multipart/mixed; boundary="----------=_1362591759-32444-0" This is a multi-part message in MIME format... ------------=_1362591759-32444-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 This is an automatic notification regarding your Bug report which was filed against the x2gobroker package: #140: x2gobroker: agent-query-mode in sessionprofiles ignored It has been closed by Mike Gabriel . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Mike Gabriel by replying to this email. --=20 X2Go Bug Tracking System Contact git-admin@x2go.org with problems ------------=_1362591759-32444-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at control) by bugs.x2go.org; 6 Mar 2013 17:42:22 +0000 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir (Postfix) with ESMTPS id C98005DB0D; Wed, 6 Mar 2013 18:42:22 +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 9E3121068; Wed, 6 Mar 2013 18:42:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 836AC3B9B1; Wed, 6 Mar 2013 18:42:22 +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 AxEbamzOdibE; Wed, 6 Mar 2013 18:42:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 6187D3BACC; Wed, 6 Mar 2013 18:42:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 4034F3B9B1; Wed, 6 Mar 2013 18:42:22 +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 F008F3BA89; Wed, 6 Mar 2013 18:42:21 +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:42:21 +0100 Message-ID: <20130306184221.208478rhytsrn119@mail.das-netzwerkteam.de> X-Priority: 3 (Normal) Date: Wed, 06 Mar 2013 18:42:21 +0100 From: Mike Gabriel To: Anders Bruun Olsen Cc: 140@bugs.x2go.org, control@bugs.x2go.org Subject: Re: [X2Go-Dev] Bug#140: x2gobroker: agent-query-mode in sessionprofiles ignored References: <20130306180730.1027260dp4d6wdsi@mail.das-netzwerkteam.de> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_766ipbhioa9p"; 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. --=_766ipbhioa9p Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable close #140 thanks Hi Anders, On Mi 06 M=C3=A4r 2013 18:15:26 CET Anders Bruun Olsen wrote: > 2013/3/6 Mike Gabriel >> >> Indeed the option agent-query-mode is ignored in >> x2gobroker-sessionprofiles.**conf, as it is only available in the backend >> sections of x2gobroker.conf. >> > > Right. My mistake. My understanding was "per profile", not "per backend", > even though it clearly says per-broker-backend in the comment. Concept > confusion I'm afraid. > > >> 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 t= he >>> 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 t= he >> exact line? >> > > In branch 0.0.0.6 from git: > abo@x2go-broker:~/x2gobroker/x2gobroker$ grep -n self.get_profile_broker > brokers/base_broker.py > 478: _profile =3D self.get_profile_broker(profile_id) > 504: _profile =3D self.get_profile_broker(profile_id) > > But that was just me trying to figure out why the autologin setting was > being picked up from x2gobroker-sessionprofiles.conf while agent-query-mod= e > wasn't. Since the answer is, that it works as intended, this last part is = a > non-issue as well. Marking this issue as done, then. Mike --=20 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.xf= b --=_766ipbhioa9p 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) iQIcBAABAgAGBQJRN3/9AAoJEJr0azAldxsx1+IP/RN4fgyNsIrbdnydfdlNOLWp nOlbnZao4yDL4D3r14LC0oLUWtP+XPEg+XkkUnsrLVbxFsthnJexDJqFHMT1EkM9 /AxarSXBcnls6VHD6BVED6nmsTNNs5asxdJC/nSNMi3zOQCuP3gJrFTRlM3fvmHw ENwGdwVra0SX6/5NuK7b5sR89zWUxLZKpxj1XkGRlzSvCRAKLU6MDL/ika1y3BYt Fd8++euKk43IUz0JNrcNGSzwBhXzY0nhhhNJpQ0kxScd4U9OM9hFnMS9VhTJSInu blNKtNwpVuvT9yzEpYCgkGUL+/7cv4n9XR5UJJvElssxXNpfaZclgsqAhWDu48Cg aVoLmc8ccaYFIOHbVmiBTSTudpYJm8VFJMliGh8eT84s542s8e1qQcCfoZlYyIXF kINyhnMbg2ztrHHPlLjVwJHaNoOHLE5bnwuzAqkHmz27XmMhbT8Lm2HwhvY+ZTfZ 8xZ6aJYvM2IqtUEiOgHTfpD+OZT8r/XFSvnzuiIF/qpTsYojiDce+an3JP5iGlaO h7kZecxh3NxbkIKSnnOSShN8uG8ca8WvyE8QS//NHK48vhhDPhLKdTuW3sK0foaA N2MN9MiFMvFxkFfbcshyjug2f6aNl09vAcFGtNW/O4OlEQ/ALWiprwcmxSJtqvap wG3d0T/RFbkMItM0Up7/ =j1yI -----END PGP SIGNATURE----- --=_766ipbhioa9p-- ------------=_1362591759-32444-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.x2go.org; 6 Mar 2013 14:22:54 +0000 Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com [207.126.144.125]) by ymir (Postfix) with SMTP id 787B95DB0D for ; Wed, 6 Mar 2013 15:22:54 +0100 (CET) Received: from mail-ie0-f198.google.com ([209.85.223.198]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKUTdRPmlboH7znEqOICUoFysh8gZnXhZM@postini.com; Wed, 06 Mar 2013 14:22:54 UTC Received: by mail-ie0-f198.google.com with SMTP id 17so45777822iea.5 for ; Wed, 06 Mar 2013 06:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dsl.dk; s=google; h=x-received:mime-version:x-received:date:message-id:subject:from:to :content-type; bh=qQ5oCcksKV6wIyAuX0ven4vyUHx8mIC6aHlgGN84fFo=; b=PS7MedZluj1EonKMEX1KwNRxOB/vFm5MhCRnY5eNuhj/4gxfcBStVlo3Tkf37z+D1N OGYFHX8YX1V2skptnzxFsu1iqGqLJ0TxZeq3yXez1kEFcnRloAgpyjNFVy33ld+dRJMe 5BPf0vFS+4ZONpp7/XMt82roHxBPCr1DwHNCY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=qQ5oCcksKV6wIyAuX0ven4vyUHx8mIC6aHlgGN84fFo=; b=CwK/Sl1Y4ANWDWTh/2krPCV2hqk98Lqb+5lpk8ox75NEexusWb5zoKdOStI35LEeA8 Bx8NU4jnUuACwVBCRTPlvleLV1uyuWrLgr8So55vhQznerEhul7fcOPRMtY+nH2NjxzY Hxsmr8CH6qW8TfU8r7C+R7M+YAHqnS8Ugsl3jM3WFB3QHNPKAmAbiWaQeCwve3gQIRsd 0C1+Yo/OBuCwcuMXr68t2UTo3bk00C8e87M1J0+ESCuZOoa3HjUGPcTj8rY353tDWxQr cfwhJp2Qoj5o0xwtxlYiIJNrPKhxFyyEiAwQ0TQEnVcHiJ6qA7kif7Stxf7VEYGln97L RLYA== X-Received: by 10.60.1.225 with SMTP id 1mr22463833oep.141.1362579773061; Wed, 06 Mar 2013 06:22:53 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.1.225 with SMTP id 1mr22463819oep.141.1362579772849; Wed, 06 Mar 2013 06:22:52 -0800 (PST) Received: by 10.182.95.211 with HTTP; Wed, 6 Mar 2013 06:22:52 -0800 (PST) Date: Wed, 6 Mar 2013 15:22:52 +0100 Message-ID: Subject: x2gobroker: agent-query-mode in sessionprofiles ignored From: Anders Bruun Olsen To: submit@bugs.x2go.org Content-Type: multipart/alternative; boundary=e89a8fb1fbba56d79004d74253dd X-Gm-Message-State: ALoCoQnkBmdSKErveJ/e0cJFX7mBJU/765VxS7BX67zv07a81w22jMjuaZ3q9BEavXjHYwii4vSvPY13rF88cIBoQXmIag4lASyqsSx5dWzhkD+6I/p6jyjufO0LW3Skk85Uu0Ut2C+7Itj0rBSrytY8BOItfyT2lQ== --e89a8fb1fbba56d79004d74253dd Content-Type: text/plain; charset=UTF-8 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 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? -- Anders Bruun Olsen It-ansvarlig Det Danske Sprog- og Litteraturselskab (Society for Danish Language and Literature) --e89a8fb1fbba56d79004d74253dd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Package: x2gobroker
Version: 0.0.0.6

Having agent-query-mode=3DSSH set in a profile in /etc/x2go/broker/= x2gobroker-sessionprofiles.conf is ignored. Instead default-agent-query-mod= e 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_brok= er.X2GoBroker.get_agent_query_mode(): found default-agent-query-mode in glo= bal config section: local

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

--
Anders B= ruun Olsen
It-ansvarlig
Det Danske Sprog- og Litteraturselskab
(Society for Dani= sh Language and Literature)
--e89a8fb1fbba56d79004d74253dd-- ------------=_1362591759-32444-0--