Bug 30225 - Limit the length of the DC name when creating school
Limit the length of the DC name when creating school
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 3.0
Other Linux
: P3 normal (vote)
: UCS@school 3.1 R2
Assigned To: Florian Best
Felix Botner
: interim-2
Depends on:
Blocks: 30226 31427 31689 51901
  Show dependency treegraph
 
Reported: 2013-01-31 13:33 CET by Alexander Kläser
Modified: 2020-08-24 13:49 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2013-01-31 13:33:22 CET
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.
Comment 1 Arvid Requate univentionstaff 2013-01-31 13:57:07 CET
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
Comment 2 Florian Best univentionstaff 2013-04-26 11:45:08 CEST
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
Comment 3 Florian Best univentionstaff 2013-04-26 11:49:49 CEST
(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
Comment 4 Florian Best univentionstaff 2013-04-26 13:03:35 CEST
Hostname has been restricted to 13 chars, FQDN to 63 chars.

ucs-school-umc-wizards 2.0.16-1.64.201304261230

Changelog created
Comment 5 Felix Botner univentionstaff 2013-05-23 10:58:01 CEST
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
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2013-06-07 21:39:43 CEST
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".