Univention Bugzilla – Bug 38092
Allow "admin" as username
Last modified: 2018-12-05 14:39:01 CET
2015031721000128 Because "admin" is not permitted by username syntax, 90_postjoin/10admember fails when creating the domain admin. As this is done after the AD credentials have been verified, the message is very confusing for the user: -- var/log/univention_setup.log __STEP__:75 __MSG__:Einrichten des Administrator-Kontos... 19.03.15 10:23:47.242 MODULE ( PROCESS ) : Prepare administrator account 19.03.15 10:23:47.475 MODULE ( ERROR ) : Account creation for admin failed 19.03.15 10:23:47.476 MODULE ( ERROR ) : udm users/user create output: E: Invalid Syntax: User name: Username must only contain numbers, letters and dots, and may not be 'admin'! __ERR__:Eine Verbindung zum AD-Server %s konnte nicht hergestellt werden. Bitte überprüfen Sie Benutzername und Passwort. run-parts: /usr/lib/univention-system-setup/scripts/90_postjoin//10admember exited with return code 1
Happened here again while joining UCS into an AD domain: Ticket#2017070721000207 root@master441:~# udm users/user create --set username=admin --set lastname=Admin --set password=univention E: Invalid Syntax: User name: Username must only contain numbers, letters and dots, and may not be 'admin'! root@master441:~# s We should allow admin as username.
Successful build Package: univention-directory-manager-modules Version: 13.0.25-20A~4.3.0.201811271106 Branch: ucs_4.3-0 Scope: errata4.3-2 User: jbremer c9b95ff8c9 Bug #38092: Advisory 8acd8c778e Bug #38092: Merge branch 'jbremer/bug38092' into 4.3-2 7661b6387d Bug #38092: Version bump cdd7a508c0 Bug #38092: Updated translation ab60961d00 Bug #38092: Username admin is now allowed Creating a user with the name 'admin' is now allowed
CLI test: OK UMC test: OK Translation: OK YAML: OK
<http://errata.software-univention.de/ucs/4.3/355.html>