Bug 20482 - UDM allows to create invalid hostnames
UDM allows to create invalid hostnames
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 2.4
All Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: UMC maintainers
:
: 29700 31798 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-22 10:12 CEST by Thorsten Glaser
Modified: 2022-06-30 14:39 CEST (History)
4 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): External feedback, Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Glaser 2010-10-22 10:12:08 CEST
When adding a Computer in UDM, it allows underscores (‘_’) in the
“Hostname (*)” field, which are illegal in DNS though. As the hostname
is used as part of the DNS FQDN, errors are guaranteed to ensue later.

Please implement sanity checks for hostnames according to the appropriate
RFCs (AFAICR, the regexp is [a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])* – i.e.
alphanumerical, with a hyphen-minus allowed but not as first or last cha-
racter – per dot-separated FQDN part).
Comment 1 Stefan Gohmann univentionstaff 2013-02-19 08:24:18 CET
This should be checked but we should also consider the AD behave.
Comment 2 Florian Best univentionstaff 2016-03-03 13:07:21 CET
*** Bug 31798 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2016-03-03 13:07:43 CET
(In reply to Philipp Hahn from Bug #31798 comment #2)
> (In reply to Jan Christoph Ebersbach from comment #1)
> > Actually, this is a DNS issue.  Hostnames must not include underscores!
> 
> Yes and no: DNS allows underscores: RFC 1034, section 3.5 "Preferred name
> syntax", but host-names are letters-digits-hyphen only: RFC 1123, section
> 2.1 "Host Names and Numbers.
> 
> See <http://www.c3.hu/docs/oreilly/tcpip/dnsbind/ch04_05.htm> and
> <http://stackoverflow.com/questions/2180465/can-someone-have-a-subdomain-
> with-an-underscore-in-it> for more details.
Comment 4 Florian Best univentionstaff 2016-03-03 13:08:26 CET
*** Bug 29700 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Gohmann univentionstaff 2016-04-25 07:52:41 CEST
This issue has been filed against UCS 2.4.

UCS 2.4 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
you.