server(), '', 'objectclass=*', array('+', '*', 'subschemasubentry')); 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 "
" . _("Managed suffixes") . " | "; echo "" . $namingContexts . " |
" . _("LDAP version") . " | "; echo "" . $supportedldapversion . " |
" . _("Config suffix") . " | "; echo "" . $configcontext . " |
" . _("Schema suffix") . " | "; echo "" . $subschemasubentry . " |
" . _("Dynamic subtrees") . " | "; echo "" . $dynamicSubtrees . " |
" . _("SASL mechanisms") . " | "; echo "" . $supportedsaslmechanisms . " |
" . _("Vendor name") . " | "; echo "" . $vendorname . " |
" . _("Vendor version") . " | "; echo "" . $vendorversion . " |