Skip to content

Commit

Permalink
fix sync v2
Browse files Browse the repository at this point in the history
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
  • Loading branch information
rissson committed Oct 22, 2024
1 parent 3508524 commit 1e2a88a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions authentik/sources/kerberos/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class KerberosSync:
_logger: BoundLogger
_connection: "kadmin.KAdmin"
mapper: SourceMapper
manager: PropertyMappingManager
user_manager: PropertyMappingManager
group_manager: PropertyMappingManager
matcher: SourceMatcher

def __init__(self, source: KerberosSource):
Expand All @@ -42,7 +43,8 @@ def __init__(self, source: KerberosSource):
self._messages = []
self._logger = get_logger().bind(source=self._source, syncer=self.__class__.__name__)
self.mapper = SourceMapper(self._source)
self.manager = self.mapper.get_manager(User, ["principal"])
self.user_manager = self.mapper.get_manager(User, ["principal"])
self.group_manager = self.mapper.get_manager(Group, ["group_id", "principal"])
self.matcher = SourceMatcher(
self._source, UserKerberosSourceConnection, GroupKerberosSourceConnection
)
Expand Down

0 comments on commit 1e2a88a

Please sign in to comment.