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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.4, 2.3.1, 2.5.4, 2.6
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-34319_master

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Mar/14