Univention Bugzilla – Bug 18332
Sonderzeichen im username
Last modified: 2022-04-05 16:48:47 CEST
laut Beschreibung aus uid_umlauts_lower_except_first_letter (syntax.py) sind in Benutzernamen nur Zahlen, Buchstaben und Punkte erlaubt. "Username must only contain numbers, letters and dots, and may not be 'admin'" Jedoch matcht der reguläre Ausdruck auch auf andere Zeichen: import re text = "foo+bar" unicode_text=text.decode("utf-8") _re = re.compile('(?u)(^\w[\w -.]*\w$)|\w*$') print _re.match(unicode_text) Hier sollte also entweder die Fehlermeldung oder der reguläre Ausdruck angepasst werden.
Bei den Gruppennamen gibt es das gleiche Problem: _re = re.compile('(?u)^\w([\w -.]*\w)?$') text = "foo,bar" unicode_text=text.decode("utf-8") print _re.match(unicode_text)
*** Bug 24137 has been marked as a duplicate of this bug. ***
This issue has been filed against UCS 2.3. UCS 2.3 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug". In this case please provide detailed information on how this issue is affecting you.
*** This bug has been marked as a duplicate of bug 54589 ***