Bug 34522 - Incorrect DN split in univention/uldap.py
Incorrect DN split in univention/uldap.py
Status: CLOSED DUPLICATE of bug 40129
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 3.2
All Linux
: P5 normal (vote)
: UCS 3.x
Assigned To: Philipp Hahn
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-10 09:48 CEST by Philipp Hahn
Modified: 2016-07-20 10:59 CEST (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-04-10 09:48:37 CEST
',' in RDNs might be esacped as '\n', which breaks splitting, probably use <http://www.python-ldap.org/doc/html/ldap-dn.html#ldap.dn.str2dn>:
/usr/share/pyshared/univention/uldap.py:
 52         pos=dn.find(',')+1
 61         exploded_dn=dn.split(',')
461                         if dn.startswith(key+'='):
Does not work with multi-valued RDN, e.g. "foo=1+bar=2"
522                 oldrdn = dn[:dn.find(',')]
523                 oldsdn = dn[dn.find(',')+1:]
524                 newrdn = newdn[:newdn.find(',')]
525                 newsdn = newdn[newdn.find(',')+1:]
Comment 1 Philipp Hahn univentionstaff 2016-07-20 10:35:26 CEST
r70653 Bug #40129: use official python-LDAP utilities
r70685 Bug #40041: make renaming of multi valued RDNs possible
...

*** This bug has been marked as a duplicate of bug 40129 ***