Bug 46751 - AD-Connector rejects to sync object to_ucs probably due to adopted AD schema
AD-Connector rejects to sync object to_ucs probably due to adopted AD schema
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Stefan Gohmann
Arvid Requate
:
Depends on:
Blocks: 46757 48291
  Show dependency treegraph
 
Reported: 2018-03-27 17:47 CEST by Nico Stöckigt
Modified: 2018-12-06 14:21 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.137
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018031421000495, 2017062621000923
Bug group (optional):
Max CVSS v3 score:


Attachments
remove obsolte call and handle empty proxyAddress (1.68 KB, patch)
2018-03-28 16:46 CEST, Nico Stöckigt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2018-03-27 17:47:52 CEST
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.
Comment 1 Nico Stöckigt univentionstaff 2018-03-28 16:46:35 CEST
Created attachment 9489 [details]
remove obsolte call and handle empty proxyAddress

Here is a proposal to fix the behavior.
Comment 3 Arvid Requate univentionstaff 2018-11-28 16:40:45 CET
Verified:
* Code review after package update
* Advisory
Comment 4 Arvid Requate univentionstaff 2018-12-05 14:39:11 CET
<http://errata.software-univention.de/ucs/4.3/354.html>