diff --git a/helper/ldaputil/client.go b/helper/ldaputil/client.go index 9556fe2f5824..f117c6060687 100644 --- a/helper/ldaputil/client.go +++ b/helper/ldaputil/client.go @@ -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 } }