fix: heal service accounts for LDAP users in site replication (#15785)

This commit is contained in:
Harshavardhana
2022-10-04 10:41:47 -07:00
committed by GitHub
parent be0d2537b7
commit 538aeef27a
3 changed files with 54 additions and 37 deletions

View File

@@ -135,7 +135,7 @@ func (a adminAPIHandlers) ListUsers(w http.ResponseWriter, r *http.Request) {
// Add ldap users which have mapped policies if in LDAP mode
// FIXME(vadmeste): move this to policy info in the future
ldapUsers, err := globalIAMSys.ListLDAPUsers()
ldapUsers, err := globalIAMSys.ListLDAPUsers(ctx)
if err != nil && err != errIAMActionNotAllowed {
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
return