mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: service account permissions generated from LDAP user (#11637)
service accounts generated from LDAP parent user did not inherit correct permissions, this PR fixes this fully.
This commit is contained in:
@@ -104,7 +104,7 @@ func webTokenCallback(claims *xjwt.MapClaims) ([]byte, error) {
|
||||
if claims.AccessKey == globalActiveCred.AccessKey {
|
||||
return []byte(globalActiveCred.SecretKey), nil
|
||||
}
|
||||
ok, err := globalIAMSys.IsTempUser(claims.AccessKey)
|
||||
ok, _, err := globalIAMSys.IsTempUser(claims.AccessKey)
|
||||
if err != nil {
|
||||
if err == errNoSuchUser {
|
||||
return nil, errInvalidAccessKeyID
|
||||
|
||||
Reference in New Issue
Block a user