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

Support machine readable output on single host ldapstatus check...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1543 44740490-163a-0410-bde0-09ae8108e29a
parent 5566ebba
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,30 @@ if (array_key_exists('orgtest', $_REQUEST)) {
$orgconfig);
$res = $tester->test();
if(array_key_exists('output', $_REQUEST) && $_REQUEST['output'] === 'text') {
$ok = TRUE;
foreach ($res AS $tag => $resEntry) {
if ($tag == 'time') continue;
if ($resEntry[0] == 0) {
$ok = FALSE;
echo("Error (" . $tag . ") : " . $resEntry[1] . "\n");
}
}
if ($ok) {
echo('OOOKKK');
}
// print_r($res);
// print_r($orgs[$_REQUEST['orgtest']]);
exit;
}
$t = new SimpleSAML_XHTML_Template($config, 'ldapstatus:ldapsinglehost.php');
......
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