Skip to content
Snippets Groups Projects
Commit 0a52d2b9 authored by Julian's avatar Julian
Browse files

Fix bc3b1879: filter out disabled users

parent bc3b1879
No related branches found
No related tags found
No related merge requests found
......@@ -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 = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment