Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34319

Notice: Undefined variable: ldapconnection in CAS plugin (Authentication)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.4, 2.3.1, 2.5.4, 2.6
    • 2.5.5, 2.6.2
    • Authentication
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-34319_master
    • Hide
      1. Enable the CAS authentication plugin.
      2. Set a group creator filter.
      3. Ensure you can login using CAS without getting the following errors -

      Notice: Undefined variable: ldapconnection in /path/to/moodle/auth/cas/auth.php on line 380 
      

      OR

      Notice: Undefined variable: ldap_cookie in /var/www/moodle/auth/ldap/auth.php on line 1539
      

      Show
      Enable the CAS authentication plugin. Set a group creator filter. Ensure you can login using CAS without getting the following errors - Notice: Undefined variable: ldapconnection in /path/to/moodle/auth/cas/auth.php on line 380 OR Notice: Undefined variable: ldap_cookie in /var/www/moodle/auth/ldap/auth.php on line 1539

    Description

      This Notice appears if CAS plugin is used.
      If I set a group creator filter (in CAS plugin configuration) and I try to login using CAS, I get this error :

      Notice: Undefined variable: ldapconnection in /path/to/moodle/auth/cas/auth.php on line 380 

      (I see PHP Notice because I have my moodle in debug mode). After that, CAS can't redirect me because this error is displayed on the screen. I could simply disable PHP Notices but I guess it would be better to fix this problem.

      Attachments

        Activity

          People

            markn Mark Nelson
            bseclier Benjamin SECLIER
            Mark Nelson Mark Nelson
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Mar/14