Am 21.02.2012 16:40, schrieb Mike Gabriel:
I just took a look at this and it is not so trivial to fix...
Debian's adduser (3.110) script checks validity of user names against this regexp:
'/^[_.A-Za-z0-9][-@_.A-Za-z0-9]*$?$/'
Using a '-' as a field separator in the session ID intereferes with the allowed characters in usernames.
The issue has to be addressed in x2goserver, x2goclient and python-x2go. I am not sure about the other helper applications (like the desktop bindings, desktopsharing, etc.).
Nasty bash hacker approach:
Variant: Only apply the substitution to the user name field, i.e.: myusername-remaining-parts-of-string -> myusername-remaining-parts-of-string my-user-name-remaining-parts-of-string ->#my#user#name-remaining-parts-of-string
(Of course, if "#" causes trouble, too, substitute another character that isn't allowed by the above regex.)
-Stefan