Univention Bugzilla – Bug 51619
Specify LDAP object RDN via ucs_registerLDAPExtension CLI argument
Last modified: 2021-05-25 16:02:36 CEST
For the migration path to UCS 5, ucs_registerLDAPExtension must be extended in UCS 4.4 and 5.0 so that the RDN of the object can be defined *optionally* separately from the file name for all object types. Currently the object RDN is automatically derived from the specified file name. This additional specification is necessary so that objects can be registered in LDAP for several UCS versions but with the same file name. If no RDN is specified, the old behaviour is used and the RDN is derived from the filename.
This change should be covered by the ucs-test testsuite and also the manual has to be adapted.
6f7964e5e3 | Code cleanup cd224e90c8 | ucs_registerLDAPExtension --name option 4b945a4d02 | Changelog 765268d011 | Tests aedc78d8a8 | Changelog
Adjustment of manual after initial QA, please reopen.
There is this traceback in Jenkins: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 225, in call_with_namespace result = self.main(namespace) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py", line 87, in main return self.do_it(args) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install_base.py", line 141, in do_it success = self.do_it_once(app, args) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py", line 200, in do_it_once return super(Install, self).do_it_once(app, args) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install_base.py", line 185, in do_it_once self._do_it(app, args) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/docker_install.py", line 71, in _do_it ret = super(Install, self)._do_it(app, args) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install.py", line 112, in _do_it self._register_attributes(app, args) File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/register.py", line 229, in _register_attributes schema_obj.register(schema_file, opts, udm_passthrough_options) File "/usr/lib/python2.7/dist-packages/univention/lib/ldap_extension.py", line 252, in register self.objectname = options.objectname AttributeError: Values instance has no attribute 'objectname'
bd8ae90fe5 | Cleanup tests 0bf9b39963 | Changelog Package: ucs-test Version: 10.0.0-48A~5.0.0.202007281436 Branch: ucs_5.0-0
Please fix comment #4.
5b9d32ef1a | UniventionLDAPExtension.register is also called directly from from appcenter code, where option.objectname may not be set.
Ok Code and tests are looking good -> OK Changelog -> Added -> OK Docu -> Added -> OK -> Verified
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".