Univention Bugzilla – Bug 43430
wrong DN syntax handling
Last modified: 2019-03-20 12:29:24 CET
+++ This bug was initially created as a clone of Bug #43332 +++ $ git grep -n "[Dd][Nn].*\.find([\"'],[\"'])" services/univention-printserver/cups-printers.py:273: argument += '%s,' % userDn[userDn.find('=') + 1:userDn.find(',')] services/univention-printserver/cups-printers.py:275: argument += '@%s,' % groupDn[groupDn.find('=') + 1:groupDn.find(',')] services/univention-printserver/cups-printers.py:373: user = dn[dn.find('=') + 1:dn.find(',')] services/univention-printserver/cups-printers.py:379: group = "@" + dn[dn.find('=') + 1:dn.find(',')] Use .parentDn() or ldap.dn.dn2str(ldap.dn.str2dn(...)...)
ldap.dn.explode_dn() is now used. univention-printserver (12.0.1-3) 3844b5fb3f7d | Bug #43430: correctly split DN components univention-printserver.yaml cb85228146e9 | YAML Bug #43430 3844b5fb3f7d | Bug #43430: correctly split DN components
What I tested: Added a printer and allowed only selected users/groups -> cups config is updated -> OK YAML -> OK
<http://errata.software-univention.de/ucs/4.4/9.html>