diff --git a/modules/ldapstatus/www/hobbit.php b/modules/ldapstatus/www/hobbit.php index 268cd9e5e920293109d491a698dda93b5e82e031..d05b2e119403e0d0d94b66943bbd10ab042fcd77 100644 --- a/modules/ldapstatus/www/hobbit.php +++ b/modules/ldapstatus/www/hobbit.php @@ -4,7 +4,7 @@ $config = SimpleSAML_Configuration::getInstance(); $session = SimpleSAML_Session::getInstance(); -$authTokenContactsSP = sha1('ldapstatus:hobbit|' . $config->getValue('secret')); +$authTokenContactsSP = sha1('ldapstatus:hobbit|' . SimpleSAML_Utilities::getSecretSalt()); if (isset($_REQUEST['getToken'])) { @@ -43,7 +43,7 @@ $ignore = ''; if (array_key_exists('ignore', $_REQUEST)) $ignore = '&ignore=' . $_REQUEST['ignore']; -$secretKey = sha1('ldapstatus|' . $config->getValue('secret') . '|hobbit'); +$secretKey = sha1('ldapstatus|' . SimpleSAML_Utilities::getSecretSalt() . '|hobbit'); $secretURL = SimpleSAML_Utilities::addURLparameter( SimpleSAML_Utilities::selfURLNoQuery(), array( 'key' => $secretKey, diff --git a/modules/ldapstatus/www/index.php b/modules/ldapstatus/www/index.php index 1f52f8eb09fdacd4745fcc821c10a6b45e88f1fe..ea707c3d36e1e75fd3d3bf309d09844439d207fe 100644 --- a/modules/ldapstatus/www/index.php +++ b/modules/ldapstatus/www/index.php @@ -18,7 +18,7 @@ if (array_key_exists('orgtest', $_REQUEST)) { } $orgConfig = SimpleSAML_Configuration::loadFromArray($orgs[$orgtest], 'org:[' . $orgtest . ']'); - $secretKey = sha1('ldapstatus|' . $config->getValue('secret') . '|' . $_REQUEST['orgtest']); + $secretKey = sha1('ldapstatus|' . SimpleSAML_Utilities::getSecretSalt() . '|' . $_REQUEST['orgtest']); $secretURL = SimpleSAML_Utilities::addURLparameter( SimpleSAML_Utilities::selfURLNoQuery(), array( 'orgtest' => $_REQUEST['orgtest'],