From c28694dc38a2ce3aa7a2f1b3153d6b497ea509e5 Mon Sep 17 00:00:00 2001 From: fabmen Date: Thu, 12 Dec 2013 15:50:35 +0100 Subject: [PATCH] MDL-34319 auth_cas: Fixed issue with undefined variable: ldapconnection --- auth/cas/auth.php | 1 + 1 file changed, 1 insertion(+) diff --git a/auth/cas/auth.php b/auth/cas/auth.php index 63f005b9264..ff06a3a3732 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -422,6 +422,7 @@ class auth_plugin_cas extends auth_plugin_ldap { // Test for group creator if (!empty($this->config->groupecreators)) { + $ldapconnection = $this->ldap_connect(); if ($this->config->memberattribute_isdn) { if(!($userid = $this->ldap_find_userdn($ldapconnection, $extusername))) { return false;