summaryrefslogtreecommitdiff
path: root/inc/auth_ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth_ldap.php')
-rw-r--r--inc/auth_ldap.php4
1 files changed, 4 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
*