Fix getCN during group fetching in auth/ldap (#6518)
* Fix getCN during group fetching in auth/ldap * #6518 Change strings.ToLower to strings.EqualFold
This commit is contained in:
parent
6479a73f3a
commit
ae422eea9f
|
@ -428,7 +428,7 @@ func getCN(dn string) string {
|
|||
|
||||
for _, rdn := range parsedDN.RDNs {
|
||||
for _, rdnAttr := range rdn.Attributes {
|
||||
if rdnAttr.Type == "CN" {
|
||||
if strings.EqualFold(rdnAttr.Type, "CN") {
|
||||
return rdnAttr.Value
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue