mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
support 'ldap:user' variable replacement properly (#10391)
also update `ldap.go` examples with latest minio-go changes Fixes #10367
This commit is contained in:
@@ -151,9 +151,10 @@ func getConditionValues(r *http.Request, lc string, username string, claims map[
|
||||
if ok {
|
||||
// Special case for AD/LDAP STS users
|
||||
if k == ldapUser {
|
||||
args[ldapUserPolicyVariable] = []string{vStr}
|
||||
args["user"] = []string{vStr}
|
||||
} else {
|
||||
args[k] = []string{vStr}
|
||||
}
|
||||
args[k] = []string{vStr}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user