Univention Bugzilla – Bug 46751
AD-Connector rejects to sync object to_ucs probably due to adopted AD schema
Last modified: 2018-12-06 14:21:19 CET
When syncing a MS/AD to a UCS/LDAP some objects are rejected with the following TraceBack: ---------------------------------------- 26.03.2018 06:25:14,6 LDAP (ERROR ): Unknown Exception during sync_to_ucs 26.03.2018 06:25:14,10 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 1367, in sync_to_ucs f(self, property_type, object) File "/usr/lib/pymodules/python2.7/univention/connector/ad/password.py", line 311, in password_sync_kinit object = connector._object_mapping(key, ucs_object, 'ucs') File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 1691, in _object_mapping object_out['attributes'][self.property[key].post_attributes[attr_key].con_attribute] = self.property[key].post_attributes[attr_key].mapping[0](self, key, object) File "/usr/lib/pymodules/python2.7/univention/connector/ad/proxyAddresses.py", line 70, in to_proxyAddresses mailPrimaryAddress = object['attributes'].get('mailPrimaryAddress', [None])[0] IndexError: list index out of range ---------------------------------------- As far as I understood the scenario, there is Kerio Mail installed on the MS/AD system and should be migrated to a UCS/Kopano - which obviously seems to be already setup. There is also the MS/AD object at hand.
Created attachment 9489 [details] remove obsolte call and handle empty proxyAddress Here is a proposal to fix the behavior.
Thanks, I've applied the second hunk: https://git.knut.univention.de/univention/ucs/commit/e436a59f993c79cfca4721770f4948108fb40f7b I've also started the Jenkins tests: http://jenkins.knut.univention.de:8080/job/UCS-4.3/job/UCS-4.3-2/job/ADConnectorMultiEnv/
Verified: * Code review after package update * Advisory
<http://errata.software-univention.de/ucs/4.3/354.html>