Skip to content

Commit

Permalink
review update
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Jan 5, 2024
1 parent 47862c2 commit 2042b28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ realms you specify are used for authentication. If you also want to use the

--

. Optional: The username (as defined by the username_pattern) is used for auditing and logging.
. Optional: The username is defined by the <<ref-pki-settings, username_pattern>>.
If you want to use something other than the CN of the Subject DN as
the username, you can specify a regex to extract the desired username. The regex
is applied on the Subject DN.
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/settings/security-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,8 @@ the following settings:
`username_pattern`::
(<<static-cluster-setting,Static>>)
The regular expression pattern used to extract the username from the
certificate DN. The username is used for auditing and logging (not role mapping).
certificate DN. The username is used for auditing and logging. The username can also be used
with the <<role-mapping-resources, role mapping API>> and <<configuring-authorization-delegation, authorization delegation>>.
The first match group is the used as the username.
Defaults to `CN=(.*?)(?:,|$)`.

Expand Down

0 comments on commit 2042b28

Please sign in to comment.