shanept / mediawiki-LdapAuth

New LdapAuthentication provider plugin for mediawiki
GNU General Public License v3.0
4 stars 5 forks source link

Allow local password changing when $wgLdapAuthUseLocal = true #18

Open atorrescogollo opened 4 years ago

atorrescogollo commented 4 years ago

When you mix local users with AD/LDAP users, you should be able to change the passwords of the local ones from command line. However, in this scenario, changePassword.php fails regardless $wgLdapAuthUseLocal value:

$ php maintenance/changePassword.php --conf LocalSettings.php --user Admin --password mysupersecurepassword
The authentication data change was not handled. Maybe no provider was configured?

This PR allows you to change those passwords when $wgLdapAuthUseLocal is set to true:

$ php maintenance/changePassword.php --conf LocalSettings.php --user Admin --password mysupersecurepassword
Password set for Admin