MDL-34319 auth_cas: Fixed issue with undefined variable: ldapconnection

This commit is contained in:
fabmen 2013-12-12 15:50:35 +01:00 committed by Mark Nelson
parent 974c2cdc03
commit c28694dc38

View File

@ -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;