Unable to add Windows client on domain

I’me tryng to add a Windows7 client.
Error on Windows client is:

error mapping accoutn name and SID (No mapping between account names and security IDs was done)

On UCS server this is log.samba:

  JSON Authorization: {"timestamp": "2018-03-26T09:54:10.929327+0200", "type": "Authorization", "Authorization": {"version": {"major": 1, "minor": 0}, "localAddress": "ipv4:172.16.6.55:445", "remoteAddress": "ipv4:172.16.1.156:49208", "serviceDescription": "DCE/RPC", "authType": "ncacn_np", "domain": "CDLMVENEZIA", "account": "Administrator", "sid": "S-1-5-21-663884708-1285276664-3913452951-500", "logonServer": "UCS-8023", "transportProtection": "SMB", "accountFlags": "0x00000010"}}
[2018/03/26 09:54:10.929657,  3, pid=2277] ../auth/auth_log.c:139(get_auth_event_server)
  get_auth_event_server: Failed to find 'auth_event' registered on the message bus to send JSON authentication events to: NT_STATUS_OBJECT_NAME_NOT_FOUND
[2018/03/26 09:54:10.953986,  3, pid=2277] ../source4/smbd/service_stream.c:65(stream_terminate_connection)
  Terminating connection - 'dcesrv: NT_STATUS_CONNECTION_DISCONNECTED'
[2018/03/26 09:54:10.954309,  3, pid=2277] ../source4/smbd/process_single.c:114(single_terminate)
  single_terminate: reason[dcesrv: NT_STATUS_CONNECTION_DISCONNECTED]
[2018/03/26 09:54:10.954984,  3, pid=3643] ../source4/smbd/service_stream.c:65(stream_terminate_connection)
  Terminating connection - 'ldapsrv_call_wait_done: call->wait_recv() - NT_STATUS_LOCAL_DISCONNECT'
[2018/03/26 09:54:10.955332,  2, pid=3643] ../source4/smbd/process_standard.c:473(standard_terminate)
  standard_terminate: reason[ldapsrv_call_wait_done: call->wait_recv() - NT_STATUS_LOCAL_DISCONNECT]
[2018/03/26 09:54:10.964477,  2, pid=2280] ../source4/smbd/process_standard.c:157(standard_child_pipe_handler)
  Child 3643 () exited with status 0

I see these problems:

27.03.2018 11:33:15,279 LDAP        (PROCESS): sync from ucs:   Resync rejected file: /var/lib/univention-connector/s4/1522140318.091985
27.03.2018 11:33:15,285 LDAP        (PROCESS): sync from ucs: [          user] [       add] cn=ucs-sso,cn=users,DC=cdlmvenezia,DC=intranet
27.03.2018 11:33:15,318 LDAP        (PROCESS): sync_from_ucs: error during add, searching for conflicting deleted object in S4
27.03.2018 11:33:15,319 LDAP        (PROCESS): sync_from_ucs: no conflicting deleted object found
27.03.2018 11:33:15,334 LDAP        (WARNING): sync failed, saved as rejected
	/var/lib/univention-connector/s4/1522140318.091985
27.03.2018 11:33:15,335 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=xxx,DC=xxx - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=ucs-sso,CN=Users,DC=xxx,DC=xxx', 'desc': 'Already exists'}

I add this log:

ALREADY_EXISTS: {'info': '00002071: ../ldb_tdb/ldb_index.c:1339: Failed to re-index objectSid in CN=ucs-sso,CN=Users,DC=cdlmvenezia,DC=intranet - ../ldb_tdb/ldb_index.c:1259: unique index violation on objectSid in CN=ucs-sso,CN=Users,DC=cdlmvenezia,DC=intranet', 'desc': 'Already exists'}

Mastodon