root@ucsmaster:~# /usr/share/univention-s4-connector/remove_ucs_rejected.py uid=ucs-sso,cn=users,dc=sunhut,dc=local
The rejected UCS object uid=ucs-sso,cn=users,dc=sunhut,dc=local has been removed.
root@ucsmaster:~# univention-s4connector-list-rejected
UCS rejected
S4 rejected
There may be no rejected DNs if the connector is in progress, to be
sure stop the connector before running this script.
last synced USN: 10040
root@ucsmaster:~# /usr/share/univention-s4-connector/resync_object_from_ucs.py --filter uid=ucs-sso
resync triggered for uid=ucs-sso,cn=users,dc=sunhut,dc=local
root@ucsmaster:~#
@sgvfr Please open a separate thread for your issue. From what you’ve written the underlying reason seems to be different, and trying to solve two different problems in the same thread gets pretty confusing pretty quickly. Thanks.
@bhagert Please post the content of the log file /var/log/univention/connector-s4.log (you did post log content, but that seems to be from another log file). Please also make sure that the S4 Connector is actually running; post the output of systemctl status univention-s4-connector.service
@andreaussi I don’t understand why you’re posting stuff here as well. If you have a similar issue, please open a separate thread for it; don’t hijack this one. Conflating multiple issues in the same thread gets pretty confusing pretty quickly. Thanks.
Well previous post actually held connector-s4.log, however since then the content has changed.
The log is to large to post but I believe I got the important stuff below.
20.03.2018 16:24:58,201 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211644.983017
20.03.2018 16:24:59,672 LDAP (PROCESS): sync from ucs: [ user] [ add] cn=ucs-sso,cn=users,DC=sunhut,DC=local
20.03.2018 16:25:00,827 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:25:00,828 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:25:03,129 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211644.983017
20.03.2018 16:25:03,129 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=ucs-sso,CN=Users,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=ucs-sso,CN=Users,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:25:03,129 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211675.184647
20.03.2018 16:25:03,237 LDAP (PROCESS): sync from ucs: [ user] [ add] cn=ldapper-s-ucsutil,cn=users,DC=sunhut,DC=local
20.03.2018 16:25:09,550 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:25:09,551 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:25:11,339 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211675.184647
20.03.2018 16:25:11,339 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=ldapper-s-ucsutil,CN=Users,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=ldapper-s-ucsutil,CN=Users,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:25:11,339 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211676.216838
20.03.2018 16:25:11,343 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-authors,cn=groups,DC=sunhut,DC=local
20.03.2018 16:25:14,566 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:25:14,567 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:25:16,298 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211676.216838
20.03.2018 16:25:16,299 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-authors,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-authors,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:25:16,299 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211676.696255
20.03.2018 16:25:16,302 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-editors,cn=groups,DC=sunhut,DC=local
20.03.2018 16:25:17,594 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:25:17,595 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:25:19,54 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211676.696255
20.03.2018 16:25:19,54 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-editors,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-editors,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:25:19,55 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211731.694827
20.03.2018 16:25:20,54 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-subscribers,cn=groups,DC=sunhut,DC=local
20.03.2018 16:25:21,713 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:25:21,718 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:25:23,459 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211731.694827
20.03.2018 16:25:23,460 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-subscribers,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-subscribers,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:28,545 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211743.928006
20.03.2018 16:26:28,550 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-contributors,cn=groups,DC=sunhut,DC=local
20.03.2018 16:26:33,161 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:33,166 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:35,332 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211743.928006
20.03.2018 16:26:35,332 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-contributors,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-contributors,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:35,332 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211807.687465
20.03.2018 16:26:35,472 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] cn=ucstest,cn=memberserver,cn=computers,DC=sunhut,DC=local
20.03.2018 16:26:36,944 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:36,945 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:38,887 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211807.687465
20.03.2018 16:26:38,887 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=ucstest,CN=memberserver,CN=Computers,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=ucstest,CN=memberserver,CN=Computers,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:38,887 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211862.395348
20.03.2018 16:26:38,990 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] cn=owncl-09688169,cn=memberserver,cn=computers,DC=sunhut,DC=local
20.03.2018 16:26:41,216 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:41,218 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:42,459 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211862.395348
20.03.2018 16:26:42,459 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=owncl-09688169,CN=memberserver,CN=Computers,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=owncl-09688169,CN=memberserver,CN=Computers,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:42,460 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521211863.102711
20.03.2018 16:26:42,559 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] cn=wordp-30672859,cn=memberserver,cn=computers,DC=sunhut,DC=local
20.03.2018 16:26:44,671 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:44,672 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:45,766 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521211863.102711
20.03.2018 16:26:45,766 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordp-30672859,CN=memberserver,CN=Computers,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordp-30672859,CN=memberserver,CN=Computers,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:45,766 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521212114.917405
20.03.2018 16:26:45,829 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-authors,cn=groups,DC=sunhut,DC=local
20.03.2018 16:26:49,686 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:49,691 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:51,438 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521212114.917405
20.03.2018 16:26:51,438 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-authors,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-authors,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:51,439 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521212114.917555
20.03.2018 16:26:51,531 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-editors,cn=groups,DC=sunhut,DC=local
20.03.2018 16:26:52,428 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:52,429 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:53,758 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521212114.917555
20.03.2018 16:26:53,759 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-editors,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-editors,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:53,759 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521212114.922899
20.03.2018 16:26:53,799 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-subscribers,cn=groups,DC=sunhut,DC=local
20.03.2018 16:26:56,534 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:56,543 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:26:57,391 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521212114.922899
20.03.2018 16:26:57,391 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-subscribers,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-subscribers,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:26:57,392 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521212114.923334
20.03.2018 16:26:57,443 LDAP (PROCESS): sync from ucs: [ group] [ add] cn=wordpress-contributors,cn=groups,DC=sunhut,DC=local
20.03.2018 16:26:58,709 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:26:58,716 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:27:00,436 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521212114.923334
20.03.2018 16:27:00,437 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=wordpress-contributors,CN=Groups,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=wordpress-contributors,CN=Groups,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:27:00,437 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521213158.807890
20.03.2018 16:27:00,586 LDAP (PROCESS): sync from ucs: [ user] [ add] cn=Radmin,cn=users,DC=sunhut,DC=local
20.03.2018 16:27:02,398 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:27:02,398 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:27:02,871 LDAP (WARNING): sync failed, saved as rejected
/var/lib/univention-connector/s4/1521213158.807890
20.03.2018 16:27:02,871 LDAP (WARNING): Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 897, in __sync_file_from_ucs
if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2525, in sync_from_ucs
self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls) # FIXME encoding
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 195, in add_ext_s
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 514, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 521, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=Radmin,CN=Users,DC=sunhut,DC=local - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=Radmin,CN=Users,DC=sunhut,DC=local', 'desc': 'Already exists'}
20.03.2018 16:27:02,871 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1521213169.743682
20.03.2018 16:27:03,685 LDAP (PROCESS): sync from ucs: [ user] [ modify] cn=Radmin,cn=users,DC=sunhut,DC=local
20.03.2018 16:27:06,324 LDAP (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
20.03.2018 16:27:06,325 LDAP (PROCESS): sync_from_ucs: no conflicting deleted object found
20.03.2018 16:27:07,151 LDAP (WARNING): sync failed, saved as rejected
thanks, those log entries do help, or at least they shed some light on what’s happening. But the “why” still escapes me. It basically means that there are entries in the Samba4 LDAP that have the same ID as the ones that are about to be added. This isn’t good — no two objects can have the same ID. It hints at a problem with the RID counter.