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

Warning shown when debugging is on and user doesn't exist in LDAP Context

    XMLWordPrintable

    Details

    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      Requirement:

      • Debug ALL on
      • "Search subcontexts" is enable in LDAP settings
      • LDAP account in say staff context and different context for students

      Login via LDAP with an account that exists in only one context.
      If display errors is on the default redirect after login will show the error or in the error_log.

      Show
      Requirement: Debug ALL on "Search subcontexts" is enable in LDAP settings LDAP account in say staff context and different context for students Login via LDAP with an account that exists in only one context. If display errors is on the default redirect after login will show the error or in the error_log.
    • Workaround:
      Hide

      Change debugging to MINIMAL or NONE.

      Show
      Change debugging to MINIMAL or NONE.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      mdl41304-master

      Description

      We have recently turned on full debugging in our TEST environment and found the warning message prevents redirection:

      Warning: ldap_search(): Search: No such object in /var/www/moodle/lib/ldaplib.php on line 241
       
      Warning: ldap_first_entry() expects parameter 2 to be resource, boolean given in /var/www/moodle/lib/ldaplib.php on line 248
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iarenaza Iñaki Arenaza
              Reporter:
              tlock Tim Lock
              Peer reviewer:
              Mark Nelson
              Integrator:
              Dan Poltawski
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/13