sources/ldap: fix missing arguments?
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
9333ffd04f
commit
89bb27b95c
|
@ -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
|
||||
|
|
|
@ -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"""
|
||||
|
|
Reference in New Issue