From 350852431cd5a34da710f4beabd656b5447e4710 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Tue, 22 Oct 2024 14:05:47 +0200 Subject: [PATCH] fix sync Signed-off-by: Marc 'risson' Schmitt --- authentik/sources/kerberos/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/sources/kerberos/sync.py b/authentik/sources/kerberos/sync.py index 95e7ed3b0d0e..f585ba7edcf3 100644 --- a/authentik/sources/kerberos/sync.py +++ b/authentik/sources/kerberos/sync.py @@ -37,7 +37,8 @@ class KerberosSync: def __init__(self, source: KerberosSource): self._source = source - self._connection = self._source.connection() + with Krb5ConfContext(self._source): + self._connection = self._source.connection() self._messages = [] self._logger = get_logger().bind(source=self._source, syncer=self.__class__.__name__) self.mapper = SourceMapper(self._source)