get_Suffix('user') && ($conf->get_Suffix('user') != "")) { $startPage = "./lists/listusers.php"; $info = @ldap_search($_SESSION['ldap']->server, $conf->get_Suffix('user'), "", array()); $res = @ldap_get_entries($_SESSION['ldap']->server, $info); if (!$res && !in_array($conf->get_Suffix('user'), $new_suffs)) $new_suffs[] = $conf->get_Suffix('user'); } if ($conf->get_Suffix('group') && ($conf->get_Suffix('group') != "")) { if ($startPage == "") { $startPage = "./lists/listgroups.php"; } $info = @ldap_search($_SESSION['ldap']->server, $conf->get_Suffix('group'), "", array()); $res = @ldap_get_entries($_SESSION['ldap']->server, $info); if (!$res && !in_array($conf->get_Suffix('group'), $new_suffs)) $new_suffs[] = $conf->get_Suffix('group'); } if ($conf->get_Suffix('host') && ($conf->get_Suffix('host') != "")) { if ($startPage == "") { $startPage = "./lists/listhosts.php"; } $info = @ldap_search($_SESSION['ldap']->server, $conf->get_Suffix('host'), "", array()); $res = @ldap_get_entries($_SESSION['ldap']->server, $info); if (!$res && !in_array($conf->get_Suffix('host'), $new_suffs)) $new_suffs[] = $conf->get_Suffix('host'); } if ($conf->get_Suffix('domain') && ($conf->get_Suffix('domain') != "")) { $info = @ldap_search($_SESSION['ldap']->server, $conf->get_Suffix('domain'), "", array()); $res = @ldap_get_entries($_SESSION['ldap']->server, $info); if (!$res && !in_array($conf->get_Suffix('domain'), $new_suffs)) $new_suffs[] = $conf->get_Suffix('domain'); } // get encoding $lang = explode(":",$_SESSION['language']); $lang = $lang[1]; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ("LDAP Account Manager\n"); echo (""); echo ("\n"); echo ("\n"); echo ("\n"); // display page to add suffixes, if needed if (sizeof($new_suffs) > 0) echo ("\n"); else echo ("\n"); echo ("\n"); echo ("This page requires a browser that can show frames!\n"); echo ("\n"); echo ("\n"); echo ("\n"); ?>