summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Fröhlich <bernhard@cacert.org>2019-09-21 15:19:58 +0200
committerBernhard Fröhlich <bernhard@cacert.org>2019-09-21 15:19:58 +0200
commit0f4e48c756a6073b64c74e330a69d1be70d78221 (patch)
treeceecd297cae8194f9746f08a4f7c9a82d0c08055
parent24a9c4571ad06c112bd2d1af2925f9296d132274 (diff)
parent82c0c19b8ff3ff186f7c25601929ec16a9271248 (diff)
downloadcacert-devel-0f4e48c756a6073b64c74e330a69d1be70d78221.tar.gz
cacert-devel-0f4e48c756a6073b64c74e330a69d1be70d78221.tar.xz
cacert-devel-0f4e48c756a6073b64c74e330a69d1be70d78221.zip
Merge remote-tracking branch 'origin/test-1442' into test-1442
-rw-r--r--www/cats/cats_import.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/cats/cats_import.php b/www/cats/cats_import.php
index 5e125a8..b1b0cb5 100644
--- a/www/cats/cats_import.php
+++ b/www/cats/cats_import.php
@@ -32,7 +32,7 @@ function sanitize_string($buffer) {
define ('UNDEFINED', 'nd');
// Specific for testserver: Accept Test-CATS-Server
-define ('ALLOWED_IP', '172.16.2.10');
+define ('ALLOWED_IP', '10.0.0.148');
//define ('ALLOWED_IP', '213.154.225.243');
define ('ALLOWED_IP2', '192.109.159.28');
define ('CONFIG_FILEPATH', '/www/');
@@ -59,6 +59,7 @@ if ($access !== TRUE) {
echo 'Server: '.sanitize_string($server_name).'<br>'."\r\n";
echo 'HTTPS: '.sanitize_string($https).'<br>'."\r\n";
echo 'Client cert: '.sanitize_string($ssl_client_s_dn).'<br>'."\r\n";
+ echo 'Test: '.sanitize_string(stristr($ssl_client_s_dn, 'emailAddress=cats@cacert.org')).'<br>'."\r\n";
trigger_error('Unauthorized access: ip('.$remote_addr.') server('.$server_name.') https('.$https.') cert('.$ssl_client_s_dn.')', E_USER_ERROR);
exit();
}