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:
Artem Alexandrov 2019-04-03 02:25:03 +03:00 committed by Brian Kassouf
parent 6479a73f3a
commit ae422eea9f
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}