From 4989bc6624071830e4f63f36a2bb08d9e6f7623c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 3 Feb 2008 03:19:45 +0000 Subject: Latest LDAP changes from Mark Batchelor --- etc/inc/authgui.inc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'etc/inc/authgui.inc') diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc index 0df0206..2bfe6fd 100644 --- a/etc/inc/authgui.inc +++ b/etc/inc/authgui.inc @@ -49,6 +49,7 @@ require_once("functions.inc"); $auth_method="session_auth"; /* enable correct auth backend, default to htpasswd_backed */ + $ldapcase = $config['system']['webgui']['backend']; switch($ldapcase) { @@ -62,14 +63,6 @@ default: $backing_method="htpasswd_backed"; } - -//if($config['system']['webgui']['backend'] == "ldap"){ -// $backing_method="ldap_backed"; -//} elseif($config['system']['webgui']['backend'] == "ldapother") -// $backing_method="ldap_backed"; -//else -// $backing_method="htpasswd_backed"; - /* Authenticate user - exit if failed */ if (!$auth_method($backing_method)) { exit; } @@ -322,4 +315,4 @@ function display_login_form() { \ No newline at end of file +?> -- cgit v1.1