Skip to content

Commit

Permalink
return non-empty value if trimming is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
pgbv committed Jun 24, 2024
1 parent 1513afd commit 3b5a13b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions authenticator/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func getCNFromDN(dn string) string {
if strings.HasPrefix(cn, "cn=") || strings.HasPrefix(cn, "ou=") {
return strings.TrimSpace(cn[3:])
}
return cn
}
return ""
}

0 comments on commit 3b5a13b

Please sign in to comment.