Univention Bugzilla – Full Text Bug Listing |
Summary: | Installation fails with weird base-dn | ||
---|---|---|---|
Product: | UCS | Reporter: | Janis Meybohm <meybohm> |
Component: | UMC - Setup wizard | Assignee: | Alexander Kläser <klaeser> |
Status: | CLOSED FIXED | QA Contact: | Florian Best <best> |
Severity: | normal | ||
Priority: | P5 | CC: | best, hahn, jmm, klaeser |
Version: | UCS 4.0 | ||
Target Milestone: | UCS 4.0-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
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: | |||
Bug Depends on: | |||
Bug Blocks: | 36488 |
Description
Janis Meybohm
2014-10-29 10:35:17 CET
PT UCS-4.0: My LDAP base "ou=Linux,o=World Domination,l=Gießen,st=Hessen,c=DE" is rejected: > Invalid LDAP base! > Expected format: > dc=mydomain,dc=intranet because it contains a blank, which is a valid character. The error message from ./umc/js/setup/ApplianceWizard.js:206 doesn't provide any hint why the DN is rejected. The VM is now stuck in an endless-loop with "slapd" running, but not answering: > Configure /usr/lib/univention-install/05univention-bind.inst > /usr/share/univention-admin-tools/univention-dnsedit: timeout while trying to contact LDAP server h70.phahn.pt No network is configures, so h70.phahn.pt resolved to 10.200.17.76 which is unreachable. Next try was "c=Univention", which is accepted by System-Setup, but rejected by slapdtest: > /etc/ldap/slapd.conf: line 113: <rootdn> invalid DN 21 (Invalid syntax) > rootdn "c=Univention" ('c' is short for 'countryName' and should be used with 2-letter code) > univention-ldapsearch -xLLLo ldif-wrap=no -s base -b cn=Subschema attributeTypes | grep countryName > attributeTypes: ( 2.5.4.6 NAME ( 'c' 'countryName' ) DESC 'RFC2256: ISO-3166 country 2-letter code' SUP name SINGLE-VALUE ) The VM is again stuck, but slapd is not even running. Respecting the rules from base/univention-installer/installer/modules/50_basis.py (under 3.x), system setup is now using the following regular expression: > ^(dc|cn|c|o|l)=[a-zA-Z0-9-]+(,(dc|cn|c|o|l)=[a-zA-Z0-9-]+)+$ This should be fine, AFAIS. Fixed [r56423,56424]. univention-system-setup (8.1.65-38): * Bug #36334: adjust validation of LDAP base univention-system-setup (8.1.65-39): * Bug #36334: corrected regular expression for LDAP base Added YAML file entry [r56424]. Fix: OK, invalid DN's are rejected by backend and frontend(tooltip). Valid DN's are still working (even dc=0,dc=-). Multiple RDN's are accepted. Error-Message[DE|EN]: OK, german contains english RDN-string but okay YAML: OK |