Moodle attempting to change password

Moodle attempting to change password

by Chris Knowles -
Number of replies: 4

We have our moodle environment set to authenticate against LDAP. (Moodle version 3.8.1)
When a user's password is about expire, moodle sends a popup stating that
"Your password will expire in 6 days. Do you want to change your password now?
with the options to Click Continue or Cancel

Naturally, the user clicks Continue, whereupon they receive a notice that


We have set the forgot password URL to our external password recovery site but have yet to find where
the default password reset url gets defined.

Unfortunately, even though we plaster instructions about passwords all over the login page, no-one reads them
and they naturally click the continue button.
Eventually their network password expires and they end up going to helpdesk after the account has been locked.

Does anyone have a suggestion of how we can fix this?
Thanks!!
Chris Knowles
Redeemer University
Average of ratings: -
In reply to Chris Knowles

Re: Moodle attempting to change password

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
I haven’t used LDAP auth for a while - Emma Richardson will be of much more help - but have you checked your config against the docs at https://docs.moodle.org/38/en/LDAP_authentication#LDAP_password_expiration_settings

I seem to recall that you can choose whether Moodle is allowed to change an LDAP password or not.
In reply to Jon Bolton

Re: Moodle attempting to change password

by Chris Knowles -
Thanks Jon,
I think it's more of a URL issue.
Moodle is trying to use a local reset method, but we use a remote URL.
The "Forgot Password" workflow works properly directing the user to our reset site.
In reply to Chris Knowles

Re: Moodle attempting to change password

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Actually I don't think this is an ldap issue but more of a password change url issue. There are two places to set this. One is on the manage authentication page and one is in the ldap settings. Try setting them both and see if that fixes is.