diff --git a/lam/templates/main.php b/lam/templates/main.php index 319ad4cd..2562578e 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -47,23 +47,15 @@ if ($conf->get_DomainSuffix() && ($conf->get_DomainSuffix() != "")) { if (!$res && !in_array($conf->get_DomainSuffix(), $new_suffs)) $new_suffs[] = $conf->get_DomainSuffix(); } -if ($_SESSION['config']->is_samba3()) { - $doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_domainSuffix()); -} - echo $_SESSION['header']; echo ("LDAP Account Manager\n"); echo (""); echo ("\n"); echo ("\n"); echo ("\n"); -// display page to add suffixes or add domain, if needed +// display page to add suffixes, if needed if (sizeof($new_suffs) > 0) echo ("\n"); -elseif (($_SESSION['config']->is_samba3()) && (sizeof($doms) < 1)) { - $_SESSION['domain_message'] = _("No domains found, please create one."); - echo ("\n"); -} else echo ("\n"); echo ("\n"); echo ("This page requires a browser that can show frames!\n");