From bc74bb12e2b59def84104f6318544c1be3dd86bd Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Mon, 23 Sep 2024 13:58:28 +0200 Subject: [PATCH] fix filter Signed-off-by: Marc 'risson' Schmitt --- authentik/sources/kerberos/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/sources/kerberos/signals.py b/authentik/sources/kerberos/signals.py index 34ac7a0f36f2..d240eb126902 100644 --- a/authentik/sources/kerberos/signals.py +++ b/authentik/sources/kerberos/signals.py @@ -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):