Univention Bugzilla – Bug 40212
UMC System Setup AD-Connection should enforce hostname < 16 characters
Last modified: 2023-09-06 15:27:41 CEST
UMC System Setup AD-Connection fails if the Netbios name is longer than 15 characters. The UMC should check that the Netbios/hostname is not longer than 15 characters. There is a check in UMC/modules/setup/__init__.py, but to me it looks like it is only blocking ("critical") if either univention-samba or univention-samba4 are selected for installation. We need to ensure that this limit is also enforced when doing an AD-Connection setup. This is the relevant part from setup.log: ======================================================================== Running postjoin scripts run-parts: executing /usr/lib/univention-system-setup/scripts/90_postjoin/10admember === 90_postjoin/10admember (2015-12-10 13:24:55) === __NAME__:90_postjoin/10admember Einrichten der Active-Directory-Verbindung [...] 10.12.15 13:25:50.950 MODULE ( PROCESS ) : Running samba join script [...] Setting stored password for "cn=MASTER-UCS-42-25,cn=dc,cn=computers,dc=lohn,dc=direct" in secrets.tdb setting idmap secret for '*' from /etc/machine.secret Secret stored Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. Object modified: cn=MASTER-UCS-42-25,cn=dc,cn=computers,dc=lohn,dc=direct Invalid configuration. Exiting.... Our netbios name can be at most 15 chars long, "MASTER-UCS-42-25" is 16 chars long Failed to join domain: The format of the specified computer name is invalid. ERROR: Failed to join to AD DC via net ads join. Please check your Samba DCs and your DNS and WINS configuration. ========================================================================
Created attachment 7361 [details] setup.log
Created attachment 7370 [details] patch
Created attachment 7371 [details] patch
Patch has been applied. univention-system-setup (10.0.10-22): r80872 | Bug #40212: restrict hostname of AD systems to 16 characters univention-system-setup.yaml: r80873 | YAML Bug #40212
OK The hostname is restricted to a maximum of 13 characters YAML: OK (r 80913 | 80914 - adjusted line length and typo) -> verified
<http://errata.software-univention.de/ucs/4.2/109.html>