From 0ad37c01d5d097dfe1d8ce7d2b51e7127bc0a3eb Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 27 Oct 2009 09:13:43 +1300 Subject: [PATCH] Revert to require_once(). --- inc/drivers_ldap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index 10cc6ac1..733f6964 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -7,7 +7,7 @@ * @subpackage ldap * @author Maxime Delorme * @copyright Maxime Delorme -* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 +* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later */ require_once("auth-functions.php"); @@ -176,7 +176,7 @@ class ldapDrivers } $dnUser = ldap_get_dn($this->connect, ldap_first_entry($this->connect,$entry)); - + if ($c->authenticate_hook['config']['i_use_mode_kerberos'] == "i_know_what_i_am_doing") { dbg_error_log( "LOG", "drivers_ldap : Skipping password Check for user %s which should be the same as %s",$username , $_SERVER["REMOTE_USER"]); if ($username != $_SERVER["REMOTE_USER"]) { @@ -343,7 +343,7 @@ function sync_LDAP(){ $db_users[] = $db_user['username']; $db_users_info[$db_user['username']] = array('user_no' => $db_user['user_no'], 'updated' => $db_user['updated']); } - include_once("DAViCalUser.php"); + require_once("DAViCalUser.php"); $ldap_users = array_keys($ldap_users_info); // users only in ldap