From de23b1902e4d8090eaef901112e3cf639b63299b Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 19 May 2004 22:14:41 +0000 Subject: [PATCH] added LDAP check --- lam-0.4/templates/login.php | 10 +++++++--- lam/templates/login.php | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) 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 "

"; } ?>