Univention Bugzilla – Bug 42403
make debugging of invalid dn syntax bugs easy
Last modified: 2017-07-05 13:06:30 CEST
Created attachment 8011 [details] patch Print the DN in the exception. Otherwise we don't get enough information and waste a lot of time (multiple hours) in debugging.
(In reply to Florian Best from comment #0) > Created attachment 8011 [details] > patch > > Print the DN in the exception. Otherwise we don't get enough information and > waste a lot of time (multiple hours) in debugging. Applied patch: r 80797 univention-directory-manager-modules (12.0.17-53) * Bug #42403: Applied patch from Florian Best - Print DN in INVALID_DN_SYNTAX exceptions YAML: r 80798
OK: fix adds more information to exceptions OK: YAML (adjusted in r80804) >>> import univention.admin.uldap >>> lo, po = univention.admin.uldap.getMachineConnection() >>> lo.searchDn(base='cn=foo,None') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 462, in searchDn raise univention.admin.uexceptions.ldapError('%s: %s' % (_err2str(msg), base), original_exception=msg) univention.admin.uexceptions.ldapError: Invalid DN syntax: invalid DN: cn=foo,None
<http://errata.software-univention.de/ucs/4.2/79.html>