wrapOldPasswords.php seems to need updating for AuthManager...
[22:40:31] <hop> so, i've inherited this old mediawiki instance. i've upgraded it to 1.29 and i would now like to update the password hashes [22:41:06] <hop> `php maintenance/wrapOldPasswords.php --type pbkdf2-legacyA` laconically tells me "$wgAuth does not allow local passwords. Aborting."
If we look at the script...
global $wgAuth; if ( !$wgAuth->allowSetLocalPassword() ) { $this->error( '$wgAuth does not allow local passwords. Aborting.', true ); }
Using a default $wgAuth
> var_dump( $wgAuth ) object(MediaWiki\Auth\AuthManagerAuthPlugin)#113 (2) { ["domain":protected]=> NULL ["logger":protected]=> object(MediaWiki\Logger\LegacyLogger)#112 (1) { ["channel":protected]=> string(14) "authentication" } }
If we then look at AuthManagerAuthPlugin
public function allowSetLocalPassword() { // There should be a PrimaryAuthenticationProvider that does this, if necessary return false; }