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

Cannot delete auth plugin once a user has been created

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.7.2
    • None
    • Authentication
    • None
    • MOODLE_27_STABLE

    Description

      The non 'essential' auth plugins can be deleted until a user is created with that auth type. Once a user has been created they can no longer be removed... even if that user is subsequently deleted.

      To reproduce this, you need to configure an auth plugin, add a user (e.g. via LDAP). You will see that the plugin can now not be removed. Deleting the user doesn't make any difference.

      Analysis...

      The check is made in lib/classes/plugininfo/auth.php in the function is_uninstall_allowed(). The final check is that a check is made in the 'user' table for any user with that auth type. Unfortunately, it ignores 'deleted' users which remain in the table.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              howardsmiller Howard Miller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: