Skip to content

Commit eca2321

Browse files
pinepainrojer
authored andcommitted
Add support for lowercases DN elements (cesanta#247)
1 parent 9c17b9a commit eca2321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth_server/authn/ldap_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func (la *LDAPAuth) getCNFromDN(dn string) string {
281281
if err != nil || len(parsedDN.RDNs) > 0 {
282282
for _, rdn := range parsedDN.RDNs {
283283
for _, rdnAttr := range rdn.Attributes {
284-
if rdnAttr.Type == "CN" {
284+
if strings.ToUpper(rdnAttr.Type) == "CN" {
285285
return rdnAttr.Value
286286
}
287287
}

0 commit comments

Comments
 (0)