From: Frank Brehm Date: Mon, 7 Dec 2020 18:23:58 +0000 (+0100) Subject: Ignoring memberof attributes X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=8cb5ea3eff18f08a165125c2891607042f1ae2c5;p=pixelpark%2Fldap-migration.git Ignoring memberof attributes --- 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: