Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postorius ldap membership management
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uffd
postorius ldap membership management
Commits
0a52d2b9
Commit
0a52d2b9
authored
2 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Fix
bc3b1879
: filter out disabled users
parent
bc3b1879
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postorius_ldap_membership_management/management/commands/syncldapmemberships.py
+2
-2
2 additions, 2 deletions
...hip_management/management/commands/syncldapmemberships.py
with
2 additions
and
2 deletions
postorius_ldap_membership_management/management/commands/syncldapmemberships.py
+
2
−
2
View file @
0a52d2b9
...
...
@@ -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_
r
em
oteuser
'
)
raise
NotImplementedError
(
f
'
{
type
(
search
)
}
is not supported by
postorius
_ldap_
m
em
bership_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
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment