sources/ldap: fix missing arguments?

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-18 21:49:58 +02:00
parent 9333ffd04f
commit 89bb27b95c
2 changed files with 4 additions and 4 deletions

View File

@ -62,6 +62,6 @@ class UserLDAPSynchronizer(BaseLDAPSynchronizer):
else:
self._logger.debug("Synced User", user=ak_user.username, created=created)
user_count += 1
MicrosoftActiveDirectory(self._source).sync(attributes, user, created)
FreeIPA(self._source).sync(attributes, user, created)
MicrosoftActiveDirectory(self._source).sync(attributes, ak_user, created)
FreeIPA(self._source).sync(attributes, ak_user, created)
return user_count

View File

@ -43,8 +43,8 @@ class MicrosoftActiveDirectory(BaseLDAPSynchronizer):
"""Microsoft-specific LDAP"""
def sync(self, attributes: dict[str, Any], user: User, created: bool):
self.ms_check_uac(attributes, user, created)
self.ms_check_pwd_last_set(attributes, user)
self.ms_check_pwd_last_set(attributes, user, created)
self.ms_check_uac(attributes, user)
def ms_check_pwd_last_set(self, attributes: dict[str, Any], user: User, created: bool):
"""Check pwdLastSet"""