mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Bring back listing LDAP users temporarly (#14760)
In previous releases, mc admin user list would return the list of users that have policies mapped in IAM database. However, this was removed but this commit will bring it back until we revamp this.
This commit is contained in:
@@ -476,8 +476,12 @@ func (s *TestSuiteIAM) TestLDAPSTS(c *check) {
|
||||
if err != nil {
|
||||
c.Fatalf("list users should not fail: %v", err)
|
||||
}
|
||||
if len(usersList) > 0 {
|
||||
c.Fatalf("expected listing to be empty: %v", usersList)
|
||||
if len(usersList) != 1 {
|
||||
c.Fatalf("expected user listing output: %v", usersList)
|
||||
}
|
||||
uinfo := usersList[userDN]
|
||||
if uinfo.PolicyName != policy || uinfo.Status != madmin.AccountEnabled {
|
||||
c.Fatalf("expected user listing content: %v", uinfo)
|
||||
}
|
||||
|
||||
// Validate that the client from sts creds can access the bucket.
|
||||
|
||||
Reference in New Issue
Block a user