univention.admin.uexceptions.mailAddressUsed: The mail address is already in use

Ich hab meinen UCS als Mitglied in meinem Microsoft AD aber es werden nicht alle Benutzer synchronisiert.
Fehlermeldung in /var/log/univention/connector-ad.log:

30.11.2023 15:28:54.091 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
30.11.2023 15:28:54.091 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py", line 1496, in _ldap_pre_ready
    self.request_lock('mailPrimaryAddress', self['mailPrimaryAddress'])
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 1715, in request_lock
    value = univention.admin.allocators.request(self.lo, self.position, name, value)
  File "/usr/lib/python3/dist-packages/univention/admin/allocators.py", line 220, in request
    return acquireUnique(lo, position, type, value, _type2attr[type], scope=_type2scope[type])
  File "/usr/lib/python3/dist-packages/univention/admin/allocators.py", line 214, in acquireUnique
    raise univention.admin.uexceptions.noLock(_('The attribute %r could not get locked.') % (type,))
univention.admin.uexceptions.noLock: Could not acquire lock: The attribute 'mailPrimaryAddress' could not get locked.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1391, in sync_to_ucs
    result = self.add_in_ucs(property_type, object, module, position)
  File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1163, in add_in_ucs
    res = ucs_object.create(serverctrls=serverctrls, response=response)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 554, in create
    self._ldap_pre_ready()
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py", line 1498, in _ldap_pre_ready
    raise univention.admin.uexceptions.mailAddressUsed(self['mailPrimaryAddress'])
univention.admin.uexceptions.mailAddressUsed: The mail address is already in use: E@mail.de.

30.11.2023 15:28:54.091 LDAP        (WARNING): sync to ucs was not successful, save rejected

Ich habe schon

ucr set directory/manager/web/modules/users/user/properties/mailPrimaryAddress/syntax=string

gesetzt, gibt es vielleicht ein Variable um doppelte Emails zu ignorieren?
Oder wie kann man diese Problem beheben?

Hey hast du dafür schon eine Lösung gefunden? Wir haben die gleiche Problematik.
Gruß Marie

Mastodon