Skip to content
Snippets Groups Projects
Commit ed021918 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Require admin login to LDAP status page

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1163 44740490-163a-0410-bde0-09ae8108e29a
parent 6daef66e
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,20 @@ ...@@ -2,9 +2,20 @@
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance();
if (!$session->isValid('login-admin') ) {
SimpleSAML_Utilities::redirect('/' . $config->getBaseURL() . 'auth/login-admin.php',
array('RelayState' => SimpleSAML_Utilities::selfURL())
);
}
$ldapconfig = $config->copyFromBase('loginfeide', 'config-login-feide.php'); $ldapconfig = $config->copyFromBase('loginfeide', 'config-login-feide.php');
$orgs = $ldapconfig->getValue('orgldapconfig'); $orgs = $ldapconfig->getValue('orgldapconfig');
#echo '<pre>'; print_r($orgs); exit; #echo '<pre>'; print_r($orgs); exit;
......
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