mirror of
https://github.com/minio/minio.git
synced 2025-04-27 21:35:05 -04:00
parent
427826abc5
commit
18aceae620
@ -2959,7 +2959,7 @@ func commonAddServiceAccount(r *http.Request, ldap bool) (context.Context, auth.
|
|||||||
denyOnly := (targetUser == cred.AccessKey || targetUser == cred.ParentUser)
|
denyOnly := (targetUser == cred.AccessKey || targetUser == cred.ParentUser)
|
||||||
if ldap && !denyOnly {
|
if ldap && !denyOnly {
|
||||||
res, _ := globalIAMSys.LDAPConfig.GetValidatedDNForUsername(targetUser)
|
res, _ := globalIAMSys.LDAPConfig.GetValidatedDNForUsername(targetUser)
|
||||||
if res.NormDN == cred.ParentUser {
|
if res != nil && res.NormDN == cred.ParentUser {
|
||||||
denyOnly = true
|
denyOnly = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user