diff --git a/postorius_ldap_membership_management/management/commands/syncldapmemberships.py b/postorius_ldap_membership_management/management/commands/syncldapmemberships.py index 9f7e672b1f2b76bd13ce98aa8b385a4ad8a370b4..82f58f4473bce13ca0f24501b466bdbe532fc9e1 100644 --- a/postorius_ldap_membership_management/management/commands/syncldapmemberships.py +++ b/postorius_ldap_membership_management/management/commands/syncldapmemberships.py @@ -19,7 +19,7 @@ def execute_ldap_search_without_hiding_errors(search, connection, filterargs=(), an empty list of results. This behavor is indistinguishable from a query with no results.''' if not isinstance(search, LDAPSearch): - raise NotImplementedError(f'{type(search)} is not supported by django_auth_ldap_remoteuser') + raise NotImplementedError(f'{type(search)} is not supported by postorius_ldap_membership_management') # This is a copy of django_auth_ldap.config.LDAPSearch.execute without the # ldap.LDAPError eating try-except block if escape: @@ -43,7 +43,7 @@ class Command(BaseCommand): client = get_mailman_client() - django_users = get_user_model().objects.all() + django_users = get_user_model().objects.filter(is_active=True) backref_mapping = {'member': 'members', 'moderator': 'moderators', 'owner': 'owners'} mm_users = {}