Manual:wrapOldPasswords.php

From Linux Web Expert

Revision as of 04:55, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.24
<translate> MediaWiki version:</translate>

Details

wrapOldPasswords.php file is a maintenance script to wrap all passwords of a certain type in a specified layered type that wraps around the old type.

If necessary, the old MD5 hashing can be restored by changing $wgPasswordDefault to 'B'.

This maintenance script can wrap all passwords in 'pbkdf2-legacyA' or 'pbkdf2-legacyB' if you do not want to wait for your users to log in.

Options/Arguments

Option Description Required?
--type Type to convert to. This must be one of the layered types from $wgPasswordConfig , meaning either pbkdf2-legacyA or pbkdf2-legacyB. <translate> Required</translate>
--verbose Create verbose output during execution. <translate> Optional</translate>
--update Actually wrap passwords <translate> Optional</translate>

Usage

php maintenance/wrapOldPasswords.php --type PasswordConfigKey [ --verbose| --update ]

Dry run

Terminal

Updating the password

Terminal

See also