Files
Florence Blanc-Renaud 9b09e9b724 ipa-migrate: avoid KeyError before attributes are normalized
The ipa-migrate tool reads the content of the source LDAP server
and processes the entries. When the entry is a tombstone it must be
discarded.

In order to detect if the entry is a tombstone, the code checks
if the objectclass attribute contains the value 'nsTombstone'.
The problem is that the key ('objectClass') is not normalized
and may either be 'objectclass' (all lowercase) or 'objectClass'.
Take both cases into account and avoid KeyError exception by
normalizing the attribute + looking for case-insensitive value.

Fixes: https://pagure.io/freeipa/issue/9910
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Mark Reynolds <mreynolds@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2026-01-13 16:22:49 +01:00
..
2010-12-20 17:19:53 -05:00
2025-09-12 14:03:09 +02:00
2020-06-23 10:16:29 +02:00
2025-12-09 20:53:28 +01:00
2020-04-28 11:28:29 +02:00
2016-10-20 18:43:37 +02:00
2021-04-07 11:43:23 +03:00