Bug 35033 - Clarify the usage of "underscore" or "hyphen-minus"
Clarify the usage of "underscore" or "hyphen-minus"
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Documentation
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Sönke Schwardt-Krummrich
Dirk Wiesenthal
:
Depends on: 35032
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-02 13:10 CEST by Tim Petersen
Modified: 2014-08-27 17:01 CEST (History)
1 user (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 Tim Petersen univentionstaff 2014-06-02 13:10:32 CEST
+++ This bug was initially created as a clone of Bug #35032 +++

As far as I understood hostnames with special characters like "-" are invalid. That's why the UMC Import Wizard does not allow to create new school-ou's with such characters in the hostname (or ou).


With create_ou at the commandline new hostnames are creates with "-" per default if you don't specify the hostname:

.......................................




The doc mentions to use "hyphen-minus" for dc names - the import script also uses this by default. The umc wizard sais you have to use underscores and prohibits hyphen-minus! What's wrong and what's correct?
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2014-06-02 16:27:29 CEST
(In reply to Tim Petersen from comment #0)
> The doc mentions to use "hyphen-minus" for dc names - the import script also
> uses this by default. The umc wizard sais you have to use underscores and
> prohibits hyphen-minus! What's wrong and what's correct?

According to http://support.microsoft.com/kb/909264/de, only "hyphen-minus" is ok and works for NETBIOS and DNS:

"""DNS-Computernamen dürfen nur alphabetische Zeichen (A-Z), numerische Zeichen (0-9), das Minuszeichen (-) und den Punkt (.) enthalten. Punkte sind nur zulässig, wenn sie dazu dienen, die Bestandteile von Domänennamen zu trennen."""

The manual should be check and updated once 35032 has been fixed (→ switched from underscore to hyphen).
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-06-03 16:56:39 CEST
The manual always states that a valid hostname character is the hyphen. Underscores are only mentioned for OU names.
Comment 3 Dirk Wiesenthal univentionstaff 2014-08-26 01:52:22 CEST
Yes, but there are contradictions: Once the manual speaks of "Das Schulkürzel darf nur aus Groß- und Kleinbuchstaben sowie Ziffern und dem Unterstrich bestehen" but in some cases there is "Das Schulkürzel sollte ausschließlich aus Buchstaben, Ziffern oder dem Bindestrich bestehen, da es unter anderem die Grundlage für Gruppen-, Freigabe- und Rechnernamen bildet."

Second one is better, I guess.

Also note that technically this is a minus sign, not a hyphen. I guess hypens (–) may cause some trouble (but I did not check).
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 14:45:30 CEST
Contradictions fixed in r53090 | Bug #35033: possible characters for the school abbreviation

> Also note that technically this is a minus sign, not a hyphen. I guess
> hypens (–) may cause some trouble (but I did not check).

Skipped this for now.
Comment 5 Dirk Wiesenthal univentionstaff 2014-08-27 15:27:28 CEST
Ok
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2014-08-27 17:01:36 CEST
UCS@school 3.2 R2 v2 has been released:
http://docs.univention.de/release-notes-ucsschool-3.2R2v2-de.html

If this error occurs again, please use "Clone This Bug".