mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
If trusting the remote IP, also trust the proxied SSL client cert https://github.com/webmin/webmin/issues/1962
This commit is contained in:
@@ -1693,6 +1693,10 @@ if ($use_ssl && $verified_client) {
|
||||
Net::SSLeay::get_peer_certificate(
|
||||
$ssl_con)));
|
||||
$u = &find_user_by_cert($peername);
|
||||
if ($config{'trust_real_ip'} && !$u && $header{'x-ssl-client-dn'}) {
|
||||
# Use proxied client cert
|
||||
$u = &find_user_by_cert($header{'x-ssl-client-dn'});
|
||||
}
|
||||
if ($u) {
|
||||
$authuser = $u;
|
||||
$validated = 2;
|
||||
|
||||
Reference in New Issue
Block a user