From 4abc7c0630f9a190855b0cfa46ec44a5fd1f28ed Mon Sep 17 00:00:00 2001 From: iarenaza Date: Sat, 5 Jan 2008 14:33:55 +0000 Subject: [PATCH] MDL-10921 Fix backport of patch to 1.7.x (was using the new plugin settings syntax). Thanks to Patrick Pollet for pointing this out and providing a fix. --- auth/ldap/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index ab7359f7e5b..ea961527553 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -1363,7 +1363,7 @@ function auth_ldap_connect($binddn='',$bindpwd=''){ } // Fix MDL-10921 - if ($this->config->user_type == 'ad') { + if ($CFG->ldap_user_type == 'ad') { ldap_set_option($connresult, LDAP_OPT_REFERRALS, 0); }