server(), '', 'objectclass=*', array('+', '*', 'subschemasubentry'), 0, 0, 0, LDAP_DEREF_NEVER);
if ($result) {
$info = @ldap_get_entries($_SESSION['ldap']->server(), $result);
if ($info) {
$info = $info[0];
foreach ($info as $key => $value) {
if (is_array($info[$key]) && isset($info[$key]['count'])) {
unset($info[$key]['count']);
}
}
if (isset($info['namingcontexts'])) {
$namingContexts = implode(', ', $info['namingcontexts']);
}
if (isset($info['configcontext'])) {
$configcontext = $info['configcontext'][0];
}
if (isset($info['supportedldapversion'])) {
$supportedldapversion = implode(', ', $info['supportedldapversion']);
}
if (isset($info['supportedsaslmechanisms'])) {
$supportedsaslmechanisms = implode(', ', $info['supportedsaslmechanisms']);
}
if (isset($info['subschemasubentry'])) {
$subschemasubentry = $info['subschemasubentry'][0];
}
if (isset($info['vendorname'])) {
$vendorname = $info['vendorname'][0];
}
if (isset($info['vendorversion'])) {
$vendorversion = $info['vendorversion'][0];
}
if (isset($info['dynamicsubtrees'])) {
$dynamicSubtrees = implode(', ', $info['dynamicsubtrees']);
}
}
}
include 'main_header.php';
echo '
';
$tabindex = 1;
$container = new htmlTable();
$container->addElement(new htmlTitle(_("Server information")), true);
$container->addElement(new htmlOutputText('' . _("Managed suffixes") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($namingContexts), true);
$container->addElement(new htmlOutputText('' . _("LDAP version") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($supportedldapversion), true);
if ($configcontext != '') {
$container->addElement(new htmlOutputText('' . _("Config suffix") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($configcontext), true);
}
$container->addElement(new htmlOutputText('' . _("Schema suffix") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($subschemasubentry), true);
if ($dynamicSubtrees != '') {
$container->addElement(new htmlOutputText('' . _("Dynamic subtrees") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($dynamicSubtrees), true);
}
$container->addElement(new htmlOutputText('' . _("SASL mechanisms") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($supportedsaslmechanisms), true);
if ($vendorname != '') {
$container->addElement(new htmlOutputText('' . _("Vendor name") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($vendorname), true);
}
if ($vendorversion != '') {
$container->addElement(new htmlOutputText('' . _("Vendor version") . '', false));
$container->addElement(new htmlSpacer('20px', null));
$container->addElement(new htmlOutputText($vendorversion), true);
}
parseHtml(null, $container, array(), true, $tabindex, 'user');
echo '
';
include 'main_footer.php';
?>