mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
fix: add name and description to ldap accesskey list (#21511)
This commit is contained in:
@@ -447,6 +447,8 @@ func (a adminAPIHandlers) ListAccessKeysLDAP(w http.ResponseWriter, r *http.Requ
|
|||||||
serviceAccountList = append(serviceAccountList, madmin.ServiceAccountInfo{
|
serviceAccountList = append(serviceAccountList, madmin.ServiceAccountInfo{
|
||||||
AccessKey: svc.AccessKey,
|
AccessKey: svc.AccessKey,
|
||||||
Expiration: &expiryTime,
|
Expiration: &expiryTime,
|
||||||
|
Name: svc.Name,
|
||||||
|
Description: svc.Description,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
for _, sts := range stsKeys {
|
for _, sts := range stsKeys {
|
||||||
@@ -627,6 +629,8 @@ func (a adminAPIHandlers) ListAccessKeysLDAPBulk(w http.ResponseWriter, r *http.
|
|||||||
accessKeys.ServiceAccounts = append(accessKeys.ServiceAccounts, madmin.ServiceAccountInfo{
|
accessKeys.ServiceAccounts = append(accessKeys.ServiceAccounts, madmin.ServiceAccountInfo{
|
||||||
AccessKey: svc.AccessKey,
|
AccessKey: svc.AccessKey,
|
||||||
Expiration: &svc.Expiration,
|
Expiration: &svc.Expiration,
|
||||||
|
Name: svc.Name,
|
||||||
|
Description: svc.Description,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// if only service accounts, skip if user has no service accounts
|
// if only service accounts, skip if user has no service accounts
|
||||||
|
|||||||
Reference in New Issue
Block a user