fix: ldap:username variable substitution in policies

This commit is contained in:
Harshavardhana
2021-07-11 18:38:52 -07:00
parent cd36019450
commit d86ef6256d
2 changed files with 6 additions and 6 deletions

View File

@@ -174,7 +174,7 @@ func getConditionValues(r *http.Request, lc string, username string, claims map[
// Special case for AD/LDAP STS users
if k == ldapUser {
args["user"] = []string{vStr}
} else if k == ldapUsername {
} else if k == ldapUserN {
args["username"] = []string{vStr}
} else {
args[k] = []string{vStr}