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 #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 6 Nov 2014 14:18:19 +0000
From t.wagner@nthfs.jku.at  Thu Nov  6 15:18:17 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,URIBL_BLOCKED
	autolearn=ham version=3.3.2
X-Greylist: delayed 378 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Thu, 06 Nov 2014 15:18:17 CET
Received: from email.uni-linz.ac.at (email.edvz.uni-linz.ac.at [140.78.3.65])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 543B05DEA7
	for <submit@bugs.x2go.org>; Thu,  6 Nov 2014 15:18:17 +0100 (CET)
Received: from mail.icie.jku.at (iciemail.mechatronik.uni-linz.ac.at [140.78.138.2])
	by email.uni-linz.ac.at (Postfix) with ESMTP id 06EAD1E8CA5
	for <submit@bugs.x2go.org>; Thu,  6 Nov 2014 15:11:59 +0100 (CET)
Received: from [10.78.1.87] (unknown [10.78.1.87])
	by mail.icie.jku.at (Postfix) with ESMTPSA id C4437154BC7
	for <submit@bugs.x2go.org>; Thu,  6 Nov 2014 15:11:48 +0100 (CET)
Message-ID: <545B81A3.2000406@nthfs.jku.at>
Date: Thu, 06 Nov 2014 15:11:47 +0100
From: Thomas Wagner <t.wagner@nthfs.jku.at>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version: 1.0
To: submit@bugs.x2go.org
Subject: Domain\User notation for fails due to missing quotation of "\"
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Package: x2goserver
Version 4.0.1.18

Hi folks,

I'm using x2goserver on an openSUSE 13.1 which is a member in an
AD-Domain. Thus is have usernames like "DOMAIN\USER".  Logging in with
SSH works fine but starting x2go fails. For some users I get errors like
MYDOMAIN\student is not authorized at /usr/lib/x2go/x2gosqlitewrapper.pl
line 527.
: /usr/lib/x2go/x2gosqlitewrapper insertsession 60 cd-sim
MYDOMAINstudent-60-1415280062 at /usr/lib64/x2go/x2godbwrapper.pm line 320.

For other users it works. I tracked the problem down to line 525 in
x2gosqlitewrapper.pl. The line is:
$user =~ s/$realuser-[0-9]{2,}-[0-9]{10,}.*/$realuser/;

$realuser is a string like  "MYDOMAIN\student". This is what makes the
regex fail since \s is a special escape sequence in perl. Also usernames
with other special escape sequences like \k fail.

best regards

Thomas


-- 
Dipl.-Ing. Thomas Wagner
Institute for Communications and Information Engineering
Johannes Kepler University Linz, 4040 Linz, Austria
mailto: t.wagner@nthfs.jku.at
Phone: +43 732 2468 6404
http://www.nthfs.jku.at


Send a report that this bug log contains spam.


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