diff options
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r-- | etc/inc/authgui.inc | 11 |
1 files changed, 2 insertions, 9 deletions
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() { <?php
} // end function
-?>
\ No newline at end of file +?>
|