X2Go Bug report logs - #664
Domain\User notation for fails due to missing quotation of "\"

version graph

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

Reported by: Thomas Wagner <t.wagner@nthfs.jku.at>

Date: Thu, 6 Nov 2014 14:20:02 UTC

Severity: normal

Tags: pending

Fixed in version 4.0.1.19

Done: X2Go Release Manager <git-admin@x2go.org>

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#664: [PATCH] Patch for Bug #664
Reply-To: Peter Ludikovsky <peter@ludikovsky.name>, 664@bugs.x2go.org
Resent-From: Peter Ludikovsky <peter@ludikovsky.name>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 05 Dec 2014 12:40:02 +0000
Resent-Message-ID: <handler.664.B664.14177829583929@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 664
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by 664-submit@bugs.x2go.org id=B664.14177829583929
          (code B ref 664); Fri, 05 Dec 2014 12:40:02 +0000
Received: (at 664) by bugs.x2go.org; 5 Dec 2014 12:35:58 +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.8 required=5.0 tests=BAYES_50,SPF_HELO_PASS,
	T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham version=3.3.2
X-Greylist: delayed 370 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Fri, 05 Dec 2014 13:35:48 CET
Received: from ludikovsky.name (ludikovsky.name [158.255.212.178])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 97DD35E0DD
	for <664@bugs.x2go.org>; Fri,  5 Dec 2014 13:35:48 +0100 (CET)
Received: by ludikovsky.name (Postfix, from userid 113)
	id A679641FC; Fri,  5 Dec 2014 12:29:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ludikovsky.name;
	s=mail; t=1417782577;
	bh=KKAnx7tG3j9IXrM1Hd/Ky9umaSVNn4BTEsksZyykP5k=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=JhOzsddRCcxyVt4s3HUvSpFx0ikW5m+w5OASXgIaJuV5Z/VUvQegnSCzCLLJcAWkN
	 5mAh3VgKPNE6WEMtMR9UBRp70fpIE/7ybrmsB3otnI7/YqLcGMXtOD1nbsMOz03tKr
	 VzeMtvqbJaDiIa2+ZDg3/QqXsUqS5i70OlQ4ZV48=
Received: from HBDLAP7424.lan.hbd. (localhost [127.0.0.1])
	by ludikovsky.name (Postfix) with ESMTPSA id 3464241FB;
	Fri,  5 Dec 2014 12:29:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ludikovsky.name;
	s=mail; t=1417782577;
	bh=KKAnx7tG3j9IXrM1Hd/Ky9umaSVNn4BTEsksZyykP5k=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=JhOzsddRCcxyVt4s3HUvSpFx0ikW5m+w5OASXgIaJuV5Z/VUvQegnSCzCLLJcAWkN
	 5mAh3VgKPNE6WEMtMR9UBRp70fpIE/7ybrmsB3otnI7/YqLcGMXtOD1nbsMOz03tKr
	 VzeMtvqbJaDiIa2+ZDg3/QqXsUqS5i70OlQ4ZV48=
From: Peter Ludikovsky <peter@ludikovsky.name>
To: 664@bugs.x2go.org
Cc: Peter Ludikovsky <peter@ludikovsky.name>
Date: Fri,  5 Dec 2014 13:29:27 +0100
Message-Id: <1417782567-17916-2-git-send-email-peter@ludikovsky.name>
X-Mailer: git-send-email 1.9.3
In-Reply-To: <1417782567-17916-1-git-send-email-peter@ludikovsky.name>
References: <1417782567-17916-1-git-send-email-peter@ludikovsky.name>
---
 X2Go/Server/DB/SQLite3.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/X2Go/Server/DB/SQLite3.pm b/X2Go/Server/DB/SQLite3.pm
index d693809..dd4e403 100644
--- a/X2Go/Server/DB/SQLite3.pm
+++ b/X2Go/Server/DB/SQLite3.pm
@@ -656,6 +656,7 @@ sub check_user
 	# session id looks like someuser-51-1304005895_stDgnome-session_dp24
 	# during DB insertsession it only looks like someuser-51-1304005895
 	my $user = "$sid";
+	$realuser =~ s/\\//;
 	$user =~ s/($realuser-[0-9]{2,}-[0-9]{10,}_st(D|R).*|.*-[0-9]{2,}-[0-9]{10,}_stS(0|1)XSHAD$realuser.*)/$realuser/;
 	$user eq $realuser or die "$realuser is not authorized";
 }
-- 
1.9.3

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Oct 9 03:22:54 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.