During an AD takeover & replacement
Everything works ok and univention claims it migrated >200 objects correctly.
The annoying thing is that, it has worked for a load of users.
then there are 4 it did not work for
then there are a load MORE users it DID work for.
then some others bringing the total objects to about 94…
now either the migration process works or it does not, why should groups of records fail to migrate
whilst most of the others are ok?
If the records contain bad fields , this should be flagged during the migration process.
using LDAP editor to check these records there IS a “uidNumber” feild & it is populated.
and most users are migrated but in the s4 connector it states this:
01.02.2023 14:21:41.493 LDAP (PROCESS): sync AD > UCS: Resync rejected dn: 'CN=firstname.secondname,OU=01-Office,DC=org,DC=blown-up,DC=com'
01.02.2023 14:21:41.496 LDAP (PROCESS): sync AD > UCS: [ user] [ add] 'uid=firstname.secondname,OU=01-Office,dc=org,dc=blown-up,dc=com'
01.02.2023 14:21:41.528 LDAP (ERROR ): Unknown Exception during sync_to_ucs
01.02.2023 14:21:41.529 LDAP (ERROR ): Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/univention/s4connector/__init__.py", line 1483, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File "/usr/lib/python3/dist-packages/univention/s4connector/__init__.py", line 1203, in add_in_ucs
res = ucs_object.create(serverctrls=serverctrls, response=response)
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 557, in create
dn = self._create(response=response, serverctrls=serverctrls)
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 1259, in _create
self._ldap_pre_create()
File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py", line 1431, in _ldap_pre_create
univention.admin.allocators.acquireUnique(self.lo, self.position, 'uidNumber', self['uidNumber'], 'uidNumber', scope='base')
File "/usr/lib/python3/dist-packages/univention/admin/allocators.py", line 214, in acquireUnique
univention.admin.locking.lock(lo, position, type, value.encode('utf-8'), scope=scope)
File "/usr/lib/python3/dist-packages/univention/admin/locking.py", line 124, in lock
raise univention.admin.uexceptions.noLock(_('The attribute %r could not get locked.') % (type,))
univention.admin.uexceptions.noLock: Could not acquire lock: The attribute 'uidNumber' could not get locked.