Bug 51375

Summary: Check for uldap.search(…, attr=['dn']) → uldap.searchDn(…)
Product: UCS Reporter: Philipp Hahn <hahn>
Component: ucslintAssignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: schwardt
Version: UCS 5.0   
Target Milestone: UCS 4.4-4-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Development Internal 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:

Description Philipp Hahn univentionstaff 2020-05-30 18:13:47 CEST
"dn" is not a LDAP attribute name.

Similar for `ldapseatch … dn`.
Comment 1 Philipp Hahn univentionstaff 2020-06-23 10:47:20 CEST
[4.4-4] 3012809d97 Bug #51375 ucslint: Check for uldap.searchDn()
 doc/errata/staging/ucslint.yaml                    |  5 ++--
 packaging/ucslint/debian/changelog                 |  6 +++++
 packaging/ucslint/testframework/0009-11.correct    |  1 +
 .../ucslint/testframework/0009-11/debian/changelog |  5 ++++
 .../ucslint/testframework/0009-11/debian/compat    |  1 +
 .../ucslint/testframework/0009-11/debian/control   | 12 +++++++++
 .../ucslint/testframework/0009-11/debian/copyright | 29 ++++++++++++++++++++++
 .../ucslint/testframework/0009-11/debian/rules     |  3 +++
 packaging/ucslint/testframework/0009-11/test.py    |  7 ++++++
 .../ucslint/univention/ucslint/0009-Python.py      | 15 +++++++++++
 10 files changed, 82 insertions(+), 2 deletions(-)

Package: ucslint
Version: 8.0.0-17A~4.4.0.202006231043
Branch: ucs_4.4-0
Scope: errata4.4-4

[4.4-4] c74496ab2c Bug #49704: ucslint 8.0.0-17A~4.4.0.202006231043
 doc/errata/staging/ucslint.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 2 Florian Best univentionstaff 2020-06-23 18:04:21 CEST
OK: fix (base/univention-quota prooves it)
S:0009-11: quota.py:173:20: Use uldap.searchDN() instead of uldap.search(attr=["dn"])
OK: YAML
Comment 3 Erik Damrose univentionstaff 2020-06-24 12:53:14 CEST
<http://errata.software-univention.de/ucs/4.4/630.html>