diff --git a/modules/ldapstatus/templates/default/ldapstatus.php b/modules/ldapstatus/templates/default/ldapstatus.php index 6c3283135d82eb5bab3e90251f5853c0d5bd3800..670b1784ec010d92a6f93a1f4136b7025a1f444c 100644 --- a/modules/ldapstatus/templates/default/ldapstatus.php +++ b/modules/ldapstatus/templates/default/ldapstatus.php @@ -8,18 +8,18 @@ $this->includeAtTemplateBase('includes/header.php'); <h2>LDAP test</h2> -<table class="attributes" style="width: 100%; border: 1px solid #aaa"> +<table class="attributes" style="font-size: small; width: 100%; border: 1px solid #aaa"> <tr> - <th>Name of institusion</th> - <!-- th>Identifier</th --> - <th>Conf</th> - <th>Meta</th> - <th>Ping</th> - <th>Admin bind()</th> - <th>Search bogus</th> - <th>Search test</th> - <th>Bind test</th> - <th>GetAttr test</th> + <th>Name of institusion</th> + <th>Conf</th> + <th>Meta</th> + <th>Ping</th> + <th>Admin bind()</th> + <th>Search bogus</th> + <th>Search test</th> + <th>test</th> + <th>Bind test</th> + <th>GetAttr</th> </tr> <?php @@ -59,13 +59,13 @@ foreach($this->data['sortedOrgIndex'] as $orgkey) { } else { echo('<td><span style="color: #b4b4b4; font-size: x-small">NA</span> <tt>' . $orgkey . '</tt></td>'); } -# echo('<td><tt>' . htmlspecialchars($orgkey) . '</tt></td>'); showRes('config', $res, $this); showRes('configMeta', $res, $this); showRes('ping', $res, $this); showRes('adminBind', $res, $this); showRes('ldapSearchBogus', $res, $this); showRes('ldapSearchTestUser', $res, $this); + showRes('configTest', $res, $this); showRes('ldapBindTestUser', $res, $this); showRes('ldapGetAttributesTestUser', $res, $this); echo('</tr>'); diff --git a/modules/ldapstatus/www/index.php b/modules/ldapstatus/www/index.php index f48e94bb166089358701895654daab692e063183..d547a401631cf68e697e7994541987d6e6cb83e9 100644 --- a/modules/ldapstatus/www/index.php +++ b/modules/ldapstatus/www/index.php @@ -59,7 +59,8 @@ foreach ($orgs AS $orgkey => $orgconfig) { $results[$orgkey]['config'] = checkConfig($orgconfig, array('description', 'searchbase', 'hostname')); - $results[$orgkey]['configMeta'] = checkConfig($orgconfig, array('enable_tls', 'testUser', 'testPassword', 'contactMail', 'contactURL')); + $results[$orgkey]['configMeta'] = checkConfig($orgconfig, array('enable_tls', 'contactMail', 'contactURL')); + $results[$orgkey]['configTest'] = checkConfig($orgconfig, array('testUser', 'testPassword')); if (!$results[$orgkey]['config'][0]) continue; @@ -149,7 +150,7 @@ foreach ($orgs AS $orgkey => $orgconfig) { function resultCode($res) { $code = ''; - $columns = array('config', 'configMeta', 'ping', 'adminUser', 'ldapSearchBogus', 'ldapSearchTestUser', 'ldapBindTestUser', 'ldapGetAttributesTestUser'); + $columns = array('config', 'configMeta', 'ping', 'adminUser', 'ldapSearchBogus', 'configTest', 'ldapSearchTestUser', 'ldapBindTestUser', 'ldapGetAttributesTestUser'); foreach ($columns AS $c) { if (array_key_exists($c, $res)) { $code .= ($res[$c][0] ? '0' : '2');