Bug 56158 - Improve feedback for LDAP base
Improve feedback for LDAP base
Status: NEW
Product: UCS
Classification: Unclassified
Component: System setup
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-19 14:39 CEST by Philipp Hahn
Modified: 2023-06-19 14:46 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.011
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 Philipp Hahn univentionstaff 2023-06-19 14:39:19 CEST
USS prints some *generic* error message in UMC; it should be more specific which part is invalid.

#: umc/python/setup/__init__.py:430
msgid ""
"The LDAP base may neither contain blanks nor any special characters. Its "
"structure needs to consist of at least two relative distinguished names "
"(RDN) which may only use the attribute tags 'dc', 'cn', 'c', 'o', or 'l' (e."
"g., dc=test,dc=net)."
msgstr ""
"Die LDAP-Basis darf weder Leer- noch Sonderzeichen enthalten. Ihre Struktur "
"muss aus mindestens zwei Relative Distinguished Names (RDN) bestehen, die "
"eines der Attribut-Tags 'dc', 'cn', 'c', 'o', or 'l' verwenden (z.B. dc=test,"
"dc=net)."

#: usr/share/univention-system-setup/www/ApplianceWizard.js:218
msgid ""
"Invalid LDAP base!<br/>The LDAP base may neither contain blanks nor any "
"special characters. Its structure needs to consist of at least two relative "
"distinguished names (RDN) with attribute tags 'dc', 'cn', 'c', 'o', or 'l' "
"(e.g., dc=test,dc=net)."
msgstr ""
"Ungültige LDAP-Basis!<br/>Die LDAP-Basis darf weder Leer- noch Sonderzeichen"
" enthalten. Ihre Struktur muss aus mindestens zwei Relative Distinguished "
"Names (RDN) bestehen, die eines der Attribut-Tags 'dc', 'cn', 'c', 'o', or "
"'l' verwenden (z.B. dc=test,dc=net)."

See umc/python/setup/util.py:884 for is_ldap_base

# univention-ldapsearch -xLLLo ldif-wrap=no -s base -b cn=Subschema + -E mv='(attributeTypes=c)'
dn: cn=Subschema
attributeTypes: ( 2.5.4.6 NAME ( 'c' 'countryName' ) DESC 'RFC4519: two-letter ISO-3166 country code' SUP name SYNTAX 1.3.6.1.4.1.1466.115.121.1.11 SINGLE-VALUE )


https://docs.ldap.com/specs/rfc4517.txt 3.3.4.  Country String