[v9.4.x] LDAP: Fix user disabling (#74318)

* [LDAP] Disable removed users on login (#74016)

* manual backport of #74016 on legacy code

* LDAP: Fix active sync with large quantities of users (#73834)

* Fix authenticate user test
This commit is contained in:
Gabriel MABILLE
2023-09-04 16:14:20 +02:00
committed by GitHub
parent 1e00f2e0ab
commit 49d3cf745f
12 changed files with 187 additions and 56 deletions
@@ -176,7 +176,7 @@ func (s *UserSync) updateUserAttributes(ctx context.Context, usr *user.User, id
}
if needsUpdate {
s.log.Debug("Syncing user info", "id", usr.ID, "update", updateCmd)
s.log.Debug("Syncing user info", "id", id.ID, "update", fmt.Sprintf("%v", updateCmd))
if err := s.userService.Update(ctx, updateCmd); err != nil {
return err
}