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


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

Received: (at 664) by bugs.x2go.org; 5 Dec 2014 12:35:58 +0000
From peter@ludikovsky.name  Fri Dec  5 13:35:48 2014
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>
Subject: [PATCH] Patch for Bug #664
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: Thu Nov 21 20:09:40 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.