server(), '', 'objectclass=*', array('+', '*')); 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 = $info['supportedldapversion'][0]; } if (isset($info['supportedsaslmechanisms'])) { $supportedsaslmechanisms = implode(', ', $info['supportedsaslmechanisms']); } if (isset($info['subschemasubentry'])) { $subschemasubentry = $info['subschemasubentry'][0]; } } } echo $_SESSION['header']; echo "
" . _("Managed suffix(es)") . " | "; echo "" . $namingContexts . " |
" . _("LDAP version") . " | "; echo "" . $supportedldapversion . " |
" . _("Config suffix") . " | "; echo "" . $configcontext . " |
" . _("Schema suffix") . " | "; echo "" . $subschemasubentry . " |
" . _("SASL mechanisms") . " | "; echo "" . $supportedsaslmechanisms . " |