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

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

XMLWordPrintable

    • 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

      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.

            markn Mark Nelson
            bseclier Benjamin SECLIER
            Mark Nelson Mark Nelson
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.