Skip to content

Commit

Permalink
always compare CNs as downcase
Browse files Browse the repository at this point in the history
Sometimes people end up with certificates that have uppercase letters in
the CN, but pass lowercase in the auth map.
  • Loading branch information
evgeni committed Dec 17, 2024
1 parent 26254db commit 56e044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/apache.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
]

$api_additional_request_headers = $pulpcore::api_client_auth_cn_map.map |String $cn, String $pulp_user| {
"set ${remote_user_environ_header} \"${pulp_user}\" \"expr=%{SSL_CLIENT_S_DN_CN} == '${cn}'\""
"set ${remote_user_environ_header} \"${pulp_user}\" \"expr=%{tolower:SSL_CLIENT_S_DN_CN} == '${cn.downcase}'\""
}

$api_directory = {
Expand Down

0 comments on commit 56e044d

Please sign in to comment.