Skip to content

session server tls BUGFIX map CN by attribute OID - #649

Merged
michalvasko merged 3 commits into
develfrom
tls-ctn-cn-fix
Oct 16, 2026
Merged

michalvasko merged 3 commits into
develfrom
tls-ctn-cn-fix

Conversation

@Roytak

@Roytak Roytak commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

The commonName CTN mapping searched the certificate subject string for the first "CN=", so a value of an earlier attribute (e.g. OU=CN=root) could determine the username. The CN is now taken by its attribute OID, using the API of both TLS backends.

Also SAN values containing a NUL character are skipped instead of being truncated.

The common-name cert-to-name mapping searched the subject string for
"CN=", so an earlier attribute such as OU=CN=root could set the
username. Get the commonName by its OID instead, and skip SAN values
containing a NUL character, which would otherwise get truncated.
@michalvasko
michalvasko merged commit 798a0f4 into devel Oct 16, 2026
11 checks passed
@michalvasko
michalvasko deleted the tls-ctn-cn-fix branch October 16, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants