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

CLONE - External Database Participants not enrolled (enroled) in courses on login, but are enrolled (enroled) by enrol/database/cli/sync.php.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, 2.1, 2.2
    • Fix Version/s: 2.0.4, 2.1.1
    • Component/s: Enrolments
    • Labels:
      None
    • Environment:
      Ubuntu 10.04 LTS, Zend Server CE 5.3, MySQL 5.1
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1/ set up db sync with external database using UPPERCASE column names
      2/ log in as user that does not yet have courses synced
      3/ expected: user is enrolled into courses specified in external table automatically during login

      Show
      1/ set up db sync with external database using UPPERCASE column names 2/ log in as user that does not yet have courses synced 3/ expected: user is enrolled into courses specified in external table automatically during login
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w26_MDL-27375_m22_enrolcase

      Description

      I started with a fresh installation of Moodle 2.0.1+ (20110209). I enabled the LDAP authentication plugin and used my own PHP script to synchronize the users (we don't want ALL of them in Moodle by default). Then I enabled the External Database enrollment plugin. I created a few courses that I knew a particular student was in, and I logged in as that student. The student was not put in as a participant. I ran enrol/database/cli/sync.php and the student became a participant (along with many others). At least on my test site, students get enrolled properly by sync.php, but do not get enrolled at login time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                gpreunin Gail Preuninger
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11