Univention Bugzilla – Bug 30225
Limit the length of the DC name when creating school
Last modified: 2020-08-24 13:49:07 CEST
As the maximum length of a valid DC name is limited by Samba4, the UMC school wizard should take this into account and display a comprehensible warning. Additionally, it needs to be made sure that the documentation points the user to this limitation and that the given examples do not provoke this error.
Currently limitiations are enforced e.g. in univention-system-setup/umc/python/setup/__init__.py : * $hostname < 14: "A valid NetBIOS name can not be longer than 13 characters. If Samba is installed, the hostname should be shortened." * ($hostname + $domainname) < 63: "The length of fully qualified domain name is greater than 63 characters." * $domainname: "The length of fully qualified domain name is greater than 63 characters." * $windows_domain < 14: "The length of the windows domain name needs to be smaller than 14 characters." See also http://technet.microsoft.com/en-us/library/active-directory-maximum-limits-scalability%28v=ws.10%29.aspx#BKMK_NameLimits
What does this have to do with the DC name? You can not add DCs with the computer wizard. → I am changing DC name to hostname
(In reply to comment #2) > What does this have to do with the DC name? > You can not add DCs with the computer wizard. > → I am changing DC name to hostname my fault, this bug cares about the "create OU"-wizard
Hostname has been restricted to 13 chars, FQDN to 63 chars. ucs-school-umc-wizards 2.0.16-1.64.201304261230 Changelog created
OK - the restriction of the school server name to 13 characters works OK - changelog But, if i create a school dc with 13 characters a seconds computers object with the same name + "v" is created for the administrational network. This computer has invalid NetBIOS name. DN: cn=aaaaaaaaaaaaa,cn=dc,cn=server,cn=computers,ou=school2,dc=test,dc=fb DN: cn=aaaaaaaaaaaaav,cn=dc,cn=server,cn=computers,ou=school2,dc=test,dc=fb => new Bug #31427
UCS@school 3.1 R2 has been released: http://download.univention.de/doc/release-notes-ucsschool-3.1-rev2.pdf If this error occurs again, please use "Clone This Bug".