Bug 51619 - Specify LDAP object RDN via ucs_registerLDAPExtension CLI argument
Specify LDAP object RDN via ucs_registerLDAPExtension CLI argument
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-lib
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Arvid Requate
Jürn Brodersen
:
Depends on:
Blocks: 52433
  Show dependency treegraph
 
Reported: 2020-07-06 14:08 CEST by Sönke Schwardt-Krummrich
Modified: 2021-05-25 16:02 CEST (History)
3 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2020-07-06 14:08:15 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.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2020-07-07 13:37:35 CEST
This change should be covered by the ucs-test testsuite and also the manual has to be adapted.
Comment 2 Arvid Requate univentionstaff 2020-07-27 21:41:42 CEST
6f7964e5e3 | Code cleanup
cd224e90c8 | ucs_registerLDAPExtension --name option
4b945a4d02 | Changelog
765268d011 | Tests
aedc78d8a8 | Changelog
Comment 3 Arvid Requate univentionstaff 2020-07-27 21:47:43 CEST
Adjustment of manual after initial QA, please reopen.
Comment 4 Florian Best univentionstaff 2020-07-28 09:57:26 CEST
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'
Comment 5 Arvid Requate univentionstaff 2020-07-28 14:36:43 CEST
bd8ae90fe5 | Cleanup tests
0bf9b39963 | Changelog

Package: ucs-test
Version: 10.0.0-48A~5.0.0.202007281436
Branch: ucs_5.0-0
Comment 6 Florian Best univentionstaff 2020-07-30 12:53:23 CEST
Please fix comment #4.
Comment 7 Arvid Requate univentionstaff 2020-07-30 15:29:30 CEST
5b9d32ef1a | UniventionLDAPExtension.register is also called
             directly from from appcenter code, where option.objectname may
             not be set.
Comment 8 Jürn Brodersen univentionstaff 2020-08-10 09:56:39 CEST
Ok
Code and tests are looking good -> OK
Changelog -> Added -> OK
Docu -> Added -> OK

-> Verified
Comment 9 Florian Best univentionstaff 2021-05-25 16:02:36 CEST
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".