summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/auth_ldap.php4
-rw-r--r--inc/auth_mysql.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/inc/auth_ldap.php b/inc/auth_ldap.php
index 825a13ae3..3ae3e49a5 100644
--- a/inc/auth_ldap.php
+++ b/inc/auth_ldap.php
@@ -10,6 +10,10 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
+//check for LDAP extension on load
+if(!function_exists('ldap_connect'))
+ msg("LDAP extension not found",-1);
+
/**
* Connect to the LDAP server
*
diff --git a/inc/auth_mysql.php b/inc/auth_mysql.php
index 46e175c17..440e55411 100644
--- a/inc/auth_mysql.php
+++ b/inc/auth_mysql.php
@@ -8,6 +8,10 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
+//check for MySQL extension on load
+if(!function_exists('mysql_connect'))
+ msg("MySQL extension not found",-1);
+
/**
* Execute SQL
*