added dynamic subtrees

This commit is contained in:
Roland Gruber 2010-02-19 20:15:34 +00:00
parent 10b481e4b6
commit 24e3461081
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,7 @@ $supportedsaslmechanisms = '';
$subschemasubentry = '';
$vendorname = '';
$vendorversion = '';
$dynamicSubtrees = '';
$result = @ldap_read($_SESSION['ldap']->server(), '', 'objectclass=*', array('+', '*', 'subschemasubentry'));
if ($result) {
@ -77,6 +78,9 @@ if ($result) {
if (isset($info['vendorversion'])) {
$vendorversion = $info['vendorversion'][0];
}
if (isset($info['dynamicsubtrees'])) {
$dynamicSubtrees = implode(', ', $info['dynamicsubtrees']);
}
}
}
@ -100,6 +104,11 @@ if ($configcontext != '') {
echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Schema suffix") . "</b>&nbsp;&nbsp;</td>";
echo "<td style=\"padding:10px;\">" . $subschemasubentry . "</td></tr>";
if ($dynamicSubtrees != '') {
echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("Dynamic subtrees") . "</b>&nbsp;&nbsp;</td>";
echo "<td style=\"padding:10px;\">" . $dynamicSubtrees . "</td></tr>";
}
echo "<tr class=\"userlist\"><td style=\"padding:10px;\"><b>" . _("SASL mechanisms") . "</b>&nbsp;&nbsp;</td>";
echo "<td style=\"padding:10px;\">" . $supportedsaslmechanisms . "</td></tr>";