Univention Bugzilla – Bug 51284
script proof_class_b_reverse is broken
Last modified: 2022-02-21 13:24:31 CET
Created attachment 10362 [details] patch I began to fix the script proof_class_b_reverse for the python 3 migration. Then I noticed that it does not even work on py2/UCS 4.4. Do we really still need this script? It was developed in 2007 and has not been touched since then (except for futurize and autopep8). I attached a patch of my work on the script, but it isn't finished. $ /usr/share/univention-directory-manager-tools/proof_class_b_reverse Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/proof_class_b_reverse", line 59, in <module> computers = lo.search_s(baseDN, ldap.SCOPE_SUBTREE, 'objectClass=univentionHost', ['aRecord']) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 597, in search_s return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 591, in search_ext_s return self.result(msgid,all=1,timeout=timeout)[1] File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 503, in result resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 507, in result2 resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3 resp_ctrl_classes=resp_ctrl_classes File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4 ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call result = func(*args,**kwargs) ldap.INSUFFICIENT_ACCESS: {'desc': 'Insufficient access'}
Script already fixed.