]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Changing attributes to check in lib/pp_admintools/app/duplicate_attribs.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 1 Jun 2023 09:23:50 +0000 (11:23 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 1 Jun 2023 09:23:50 +0000 (11:23 +0200)
lib/pp_admintools/app/duplicate_attribs.py

index 91180ad5f3e8162d71301189fe7bfbe2f89773a5..b381b1f60094a18620a93caa928d5304eaa3f126 100644 (file)
@@ -25,7 +25,7 @@ from ..xlate import XLATOR
 
 from .ldap import BaseLdapApplication
 
-__version__ = '0.3.1'
+__version__ = '0.3.2'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -41,9 +41,11 @@ class EvalDuplicateAttribsApplication(BaseLdapApplication):
     show_cmdline_ldap_timeout = True
     apply_default_ldap_instance_if_not_given = True
 
-    default_uniq_attributes = ['uid', 'uidNumber', 'mail']
+    default_uniq_attributes = ['uid']
     default_dependend_uniq_attribs = {
+        'mail': '|(objectClass=inetLocalMailRecipient)(objectClass=inetMailGroup)(objectclass=inetMailUser)',
         'gidNumber': 'objectClass=posixGroup',
+        'uidNumber': 'objectClass=posixAccount',
     }
 
     # -------------------------------------------------------------------------