diff --git a/lam-0.4/templates/login.php b/lam-0.4/templates/login.php index 20faa5a6..baae13cd 100644 --- a/lam-0.4/templates/login.php +++ b/lam-0.4/templates/login.php @@ -122,11 +122,15 @@ function display_LoginPage($config_object,$profile)


4.3."); - ?> -

-
"; + } + // check if PHP has LDAP support + if (! function_exists('ldap_search')) { + StatusMessage("ERROR", "Your PHP has no LDAP support!", "Please install the LDAP extension for PHP."); + echo "

"; } ?>
diff --git a/lam/templates/login.php b/lam/templates/login.php index 20faa5a6..baae13cd 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -122,11 +122,15 @@ function display_LoginPage($config_object,$profile)


4.3."); - ?> -

-
"; + } + // check if PHP has LDAP support + if (! function_exists('ldap_search')) { + StatusMessage("ERROR", "Your PHP has no LDAP support!", "Please install the LDAP extension for PHP."); + echo "

"; } ?>