Revision: 1125
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1125&view=rev
Author:   jberanek
Date:     2009-06-23 10:48:26 +0000 (Tue, 23 Jun 2009)

Log Message:
-----------
* Added check for LDAP support into auth_ldap.inc - based on a suggestion
 from Chris Cook.

Modified Paths:
--------------
    mrbs/trunk/web/auth_ldap.inc

Modified: mrbs/trunk/web/auth_ldap.inc
===================================================================
--- mrbs/trunk/web/auth_ldap.inc        2009-06-22 22:56:38 UTC (rev 1124)
+++ mrbs/trunk/web/auth_ldap.inc        2009-06-23 10:48:26 UTC (rev 1125)
@@ -33,6 +33,12 @@
   global $ldap_dn_search_dn;
   global $ldap_dn_search_password;
 
+  if (!function_exists("ldap_connect"))
+  {
+    die("<hr><p><b>ERROR: PHP's 'ldap' extension is not installed/enabled. ".
+        "Please check your MRBS and web server configuration.</b></p><hr>\n");
+  }
+
   $all_ldap_base_dn     = array();
   $all_ldap_user_attrib = array();
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to