Bug 57564 - udm position handling appends UCS LDAP base to unknown LDAP bases
Summary: udm position handling appends UCS LDAP base to unknown LDAP bases
Status: NEW
Alias: None
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-05 11:00 CEST by Arvid Requate
Modified: 2025-03-21 14:15 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
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.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024081521000203
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2024-09-05 11:00:34 CEST
We had horribly unintelligible tracebacks logs of AD-Connector rejects for Ticket#2024081521000203 , where AD-C "forgot" to rewrite the AD-LDAP-base to the UCS-LDAP-base and as a result one obtains a nested tracebacks from udm allocators.py and uldap.py. I still have them, if interesting, but the problem can be demonstrated from the CLI:

root@primary20:~# ucr set directory/manager/cmd/debug/level='4'
root@primary20:~# udm users/user create --position=dc=foo,dc=invalid --set username=test4 --set lastname=name4 --set password=univention


05.09.24 05:23:46.410  LDAP        ( INFO    ) : uldap.search filter=(&(objectClass=univentionUDMOption)(univentionUDMOptionModule=users/user)) base=cn=univention,dc=foo,dc=invalid,dc=ucs50domain,dc=net scope=sub attr=[] unique=0 required=0 timeout=-1 sizelimit=0
05.09.24 05:23:46.417  ADMIN       ( WARN    ) : No such object.

I think, the UDM should detect earlier that the DN does not make any sense and it should definitely not simply append the UCS LDAP base to "force" the object into UCS LDAP.
Comment 1 Florian Best univentionstaff 2025-03-21 14:15:41 CET
I don't quite understand this problem fully. The bug is tagged to UCS 5.0, which behaves:

# udm users/user create --position=dc=foo,dc=invalid --set username=test4 --set lastname=name4 --set password=univention
No such object.

In UCS 5.2:
# udm users/user create --position=dc=foo,dc=invalid --set username=test4 --set lastname=name4 --set password=univention
LDAP Error: Invalid DN syntax: invalid DN: cn=univention,.

Yes, the traceback might help me to understand.