Univention Bugzilla – Full Text Bug Listing |
Summary: | Rejects with ldap/base o=LOCAL4 | ||
---|---|---|---|
Product: | UCS | Reporter: | Stefan Gohmann <gohmann> |
Component: | S4 Connector | Assignee: | Arvid Requate <requate> |
Status: | CLOSED FIXED | QA Contact: | Stefan Gohmann <gohmann> |
Severity: | normal | ||
Priority: | P5 | CC: | birkefeld, requate, walkenhorst |
Version: | UCS 3.2 | Flags: | requate:
Patch_Available+
|
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: | 37467 | ||
Attachments: |
univention-s4connector-list-rejected.txt
connector-s4.log uldap_setDn_case_sensitive_base.patch |
Description
Stefan Gohmann
2013-11-05 08:38:33 CET
Created attachment 5561 [details]
univention-s4connector-list-rejected.txt
Created attachment 5562 [details]
connector-s4.log
With a lowercase LDAP base DN everything works fine: ldap_base='o=local4' Created attachment 6571 [details]
uldap_setDn_case_sensitive_base.patch
uldap.position.setDn(DN) uses a case sensitive comparison to cut the LDAP base off from a given DN.
The S4 and AD connector both usually pass DNs as .lower(), which causes a mismatch. The attached patch adds a new option "case_sensitive_base" to the uldap.position.setDn method, with a default of True. Both connectors are then adjusted to call setDn with case_sensitive_base=False.
The proposed patch also streamlines setDn in two minor points:
* don't list.remove(RDN) where actually a specific position should be removed
* avoid unnecessary DN.reverse() and redundant explodeDn operation
Advisory: 2014-11-27-univention-s4-connector.yaml Test via Bug #37467 YAML: OK Code review: Tests: OK (In reply to Stefan Gohmann from comment #6) > Code review: Code review: OK |