Bug 46757 - 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: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on: 46751 48291
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-28 16:47 CEST by Nico Stöckigt
Modified: 2020-07-03 20:52 CEST (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
Bug group (optional):
Max CVSS v3 score:
stoeckigt: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2018-03-28 16:47:35 CEST
+++ This bug was initially created as a clone of Bug #46751 +++

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:49:01 CEST
Probably the Patch from Bug# 46751 could also applied here.
Comment 2 Stefan Gohmann univentionstaff 2018-11-27 16:45:31 CET
We will fix it through Bug #46751 for UCS 4.3- Is a backport to UCS 4.2 still needed?
Comment 3 Ingo Steuwer univentionstaff 2020-07-03 20:52:48 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.