From 8cb5ea3eff18f08a165125c2891607042f1ae2c5 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 7 Dec 2020 19:23:58 +0100 Subject: [PATCH] Ignoring memberof attributes --- lib/ldap_migration/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ldap_migration/__init__.py b/lib/ldap_migration/__init__.py index 08a516b..8d6c583 100644 --- a/lib/ldap_migration/__init__.py +++ b/lib/ldap_migration/__init__.py @@ -45,7 +45,7 @@ from .config import LDAPMigrationConfiguration from .idict import CaseInsensitiveDict from .istringset import CaseInsensitiveStringSet -__version__ = '0.8.9' +__version__ = '0.8.10' LOG = logging.getLogger(__name__) CFG_BASENAME = 'ldap-migration.ini' @@ -625,6 +625,11 @@ class LDAPMigrationApplication(BaseApplication): } for attribute in src_entry['attributes'].keys(): + if attribute.lower() == 'memberof': + if self.verbose > 1: + LOG.debug("The 'memberOf' attribute will not be migrated.") + continue + key = self.attribute_types.get_key(attribute, strict=False) if not key: if self.verbose > 1: -- 2.39.5