Skip to content

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
  • Loading branch information
rissson committed Sep 23, 2024
1 parent f53d5d2 commit bc74bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authentik/sources/kerberos/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def kerberos_sync_password(sender, user: User, password: str, **_):
"""Connect to kerberos and update password."""
user_source_connections = UserKerberosSourceConnection.objects.select_related(
"source__kerberossource"
).filter(user=user, source__kerberossource__sync_users=True, source__kerberossource__sync_users_password=True)
).filter(user=user, source__enabled=True, source__kerberossource__sync_users=True, source__kerberossource__sync_users_password=True)
for user_source_connection in user_source_connections:
source = user_source_connection.source.kerberossource
with Krb5ConfContext(source):
Expand Down

0 comments on commit bc74bb1

Please sign in to comment.