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

Add ability to change passwords for users using Shibboleth

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Make sure you have a shibboleth server properly configured.
      2. Go to Site administration ► Plugins ► Authentication
      3. Enable shibboleth server.
      4. Set Password-change URL to shibboleth server password change url.
      5. Create a user and set his auth method to shibboleth.
      6. Log in as a user
      7. Attempt to change your password (via moodle)
      8. Log out
      9. Log in again
      10. Try your old password
      11. Make sure it doesn't work
      12. Try your new password
      13. Make sure it works
      Show
      Make sure you have a shibboleth server properly configured. Go to Site administration ► Plugins ► Authentication Enable shibboleth server. Set Password-change URL to shibboleth server password change url. Create a user and set his auth method to shibboleth. Log in as a user Attempt to change your password (via moodle) Log out Log in again Try your old password Make sure it doesn't work Try your new password Make sure it works
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-41729-master

      Description

      To enable the change password, edit auth/shibboleth/auth.php:

      Edit:
      function can_change_password()

      { return true; }

      Insert:
      function change_password_url() {
      if(!empty($this->config->changepasswordurl))

      { return new moodle_url($this->config->changepasswordurl); }

      }

        Attachments

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/17