]> Frank Brehm's Git Trees - pixelpark/ldap-migration.git/commitdiff
Ignoring memberof attributes
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 7 Dec 2020 18:23:58 +0000 (19:23 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 7 Dec 2020 18:23:58 +0000 (19:23 +0100)
lib/ldap_migration/__init__.py

index 08a516b4c376ed8220a7a4ee41e0df52ad6a75e5..8d6c5837d6a8ceb6e41635168e97b3b47d598a23 100644 (file)
@@ -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: