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

Capture LDAP logs on ldap status page..

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1345 44740490-163a-0410-bde0-09ae8108e29a
parent ad9106b3
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,10 @@ if ($ok) { ...@@ -150,7 +150,10 @@ if ($ok) {
<h2>Debug log</h2>
<pre style="background: #eee; border: 1px solid #aaa">
<?php echo join("\n", $this->data['debugLog']); ?>
</pre>
<?php $this->includeAtTemplateBase('includes/footer.php'); ?> <?php $this->includeAtTemplateBase('includes/footer.php'); ?>
\ No newline at end of file
...@@ -112,6 +112,8 @@ if (array_key_exists('orgtest', $_REQUEST)) { ...@@ -112,6 +112,8 @@ if (array_key_exists('orgtest', $_REQUEST)) {
$locindex = 0; $locindex = 0;
if (array_key_exists('locindex', $_REQUEST)) $locindex = $_REQUEST['locindex']; if (array_key_exists('locindex', $_REQUEST)) $locindex = $_REQUEST['locindex'];
SimpleSAML_Logger::setCaptureLog();
$orgconfig = SimpleSAML_Configuration::loadFromArray($orgs[$_REQUEST['orgtest']], 'org:[' . $_REQUEST['orgtest'] . ']'); $orgconfig = SimpleSAML_Configuration::loadFromArray($orgs[$_REQUEST['orgtest']], 'org:[' . $_REQUEST['orgtest'] . ']');
$orgloc = $orgs[$_REQUEST['orgtest']]['locations'][$locindex]; $orgloc = $orgs[$_REQUEST['orgtest']]['locations'][$locindex];
$orgloc = mergeWithTemplate($orgloc, $locationTemplate); $orgloc = mergeWithTemplate($orgloc, $locationTemplate);
...@@ -126,6 +128,7 @@ if (array_key_exists('orgtest', $_REQUEST)) { ...@@ -126,6 +128,7 @@ if (array_key_exists('orgtest', $_REQUEST)) {
$t->data['res'] = $res; $t->data['res'] = $res;
$t->data['org'] = $orgs[$_REQUEST['orgtest']]; $t->data['org'] = $orgs[$_REQUEST['orgtest']];
$t->data['debugLog'] = SimpleSAML_Logger::getCapturedLog();
if ($isAdmin) $t->data['secretURL'] = $secretURL; if ($isAdmin) $t->data['secretURL'] = $secretURL;
$t->show(); $t->show();
exit; 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