Skip to content
Snippets Groups Projects
Commit 4a00ec67 authored by Olav Morken's avatar Olav Morken
Browse files

Add warning if the secretsalt option isn't updated.

Thanks to François Kooman for providing this patch!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3030 44740490-163a-0410-bde0-09ae8108e29a
parent 2e10ed5e
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
"warnings_https": { "warnings_https": {
"en": "<strong>You are not using HTTPS<\/strong> - encrypted communication with the user. HTTP works fine for test purposes, but in a production environment, you should use HTTPS. [ <a href=\"http:\/\/rnd.feide.no\/content\/simplesamlphp-maintenance-and-configuration\">Read more about simpleSAMLphp maintenance<\/a> ]" "en": "<strong>You are not using HTTPS<\/strong> - encrypted communication with the user. HTTP works fine for test purposes, but in a production environment, you should use HTTPS. [ <a href=\"http:\/\/rnd.feide.no\/content\/simplesamlphp-maintenance-and-configuration\">Read more about simpleSAMLphp maintenance<\/a> ]"
}, },
"warnings_secretsalt": {
"en": "<strong>The configuration uses the default secret salt</strong> - make sure you modify the default 'secretsalt' option in the simpleSAML configuration in production environments. [<a href=\"http:\/\/simplesamlphp.org\/docs\/trunk\/simplesamlphp-install\">Read more about simpleSAMLphp configuration<\/a> ]"
},
"warnings_suhosin_url_length": { "warnings_suhosin_url_length": {
"en": "The length of query parameters is limited by the PHP Suhosin extension. Please increase the suhosin.get.max_value_length option to at least 2048 bytes." "en": "The length of query parameters is limited by the PHP Suhosin extension. Please increase the suhosin.get.max_value_length option to at least 2048 bytes."
}, },
......
...@@ -20,6 +20,10 @@ if (!SimpleSAML_Utilities::isHTTPS()) { ...@@ -20,6 +20,10 @@ if (!SimpleSAML_Utilities::isHTTPS()) {
$warnings[] = '{core:frontpage:warnings_https}'; $warnings[] = '{core:frontpage:warnings_https}';
} }
if ($config->getValue('secretsalt') === 'defaultsecretsalt') {
$warnings[] = '{core:frontpage:warnings_secretsalt}';
}
if (extension_loaded('suhosin')) { if (extension_loaded('suhosin')) {
$suhosinLength = ini_get('suhosin.get.max_value_length'); $suhosinLength = ini_get('suhosin.get.max_value_length');
if (empty($suhosinLength) || (int)$suhosinLength < 2048) { if (empty($suhosinLength) || (int)$suhosinLength < 2048) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment