Univention Bugzilla – Full Text Bug Listing |
Summary: | Warn about hostnames with underscores | ||
---|---|---|---|
Product: | UCS | Reporter: | Janis Meybohm <meybohm> |
Component: | UMC - System diagnostic | Assignee: | Lukas Oyen <oyen> |
Status: | CLOSED FIXED | QA Contact: | Jürn Brodersen <brodersen> |
Severity: | normal | ||
Priority: | P5 | CC: | best, gohmann, oyen, requate |
Version: | UCS 4.1 | Flags: | oyen:
Patch_Available+
|
Target Milestone: | UCS 4.2-2-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Feature Request | 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: |
36012-diagnostic-hostname-check-420.patch
36012-diagnostic-hostname-check-420.patch |
Description
Janis Meybohm
2014-09-29 09:06:47 CEST
Created attachment 8909 [details] 36012-diagnostic-hostname-check-420.patch Check hostnames (filter objectClass=univentionHost, attribute cn) for RFC 1123 [1] compliance. If any non-compliant hostnames are found, a Warning is raised. [1]: https://tools.ietf.org/html/rfc1123#section-2 Created attachment 8910 [details]
36012-diagnostic-hostname-check-420.patch
Update, forgot to squash.
Committed in r81609 - r81610 (advisory r81649). Looks good :) What I tested: Checked two computers with: "cn=foo-" and "cn=foo_under" -> The diagnose module warned me about them -> OK YAML -> OK Note: If I understand the RFC correctly dots in hostnames and hostnames up to 255 characters would be ok, too. But that way we might not be able to add them to the dns. Because of that I would say the regex is good. (In reply to Jürn Brodersen from comment #4) > If I understand the RFC correctly dots in hostnames and hostnames up to 255 > characters would be ok, too. But that way we might not be able to add them > to the dns. Because of that I would say the regex is good. The regex is the one from `hostName` from univention.admin.syntax without the underscores. |