Parse and dedup but do not lowercase principals in SSH certs. (#2591)
This commit is contained in:
parent
d5f5ecf0ab
commit
0897da93f0
|
@ -203,8 +203,8 @@ func (b *backend) calculateValidPrincipals(data *framework.FieldData, defaultPri
|
|||
validPrincipals = defaultPrincipal
|
||||
}
|
||||
|
||||
parsedPrincipals := strutil.ParseDedupAndSortStrings(validPrincipals, ",")
|
||||
allowedPrincipals := strutil.ParseDedupAndSortStrings(principalsAllowedByRole, ",")
|
||||
parsedPrincipals := strutil.RemoveDuplicates(strutil.ParseStringSlice(validPrincipals, ","), false)
|
||||
allowedPrincipals := strutil.RemoveDuplicates(strutil.ParseStringSlice(principalsAllowedByRole, ","), false)
|
||||
switch {
|
||||
case len(parsedPrincipals) == 0:
|
||||
// There is nothing to process
|
||||
|
|
Loading…
Reference in a new issue