summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Froehlich <bernhard@cacert.org>2019-09-21 13:16:19 +0000
committerBernhard Froehlich <bernhard@cacert.org>2019-09-21 13:16:19 +0000
commit82c0c19b8ff3ff186f7c25601929ec16a9271248 (patch)
treefa54d0c8862457e322f8ff317ef4d0ebb5363e42
parenta866d3f5379b144ac5c0ee05757db335f179f758 (diff)
downloadcacert-devel-82c0c19b8ff3ff186f7c25601929ec16a9271248.tar.gz
cacert-devel-82c0c19b8ff3ff186f7c25601929ec16a9271248.tar.xz
cacert-devel-82c0c19b8ff3ff186f7c25601929ec16a9271248.zip
Changes on cats_import.php specific to the testserver
-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();
}