Manual:deleteLocalPasswords.php

From Linux Web Expert

Revision as of 03:22, 19 May 2022 by imported>EN-Jungwon (Reverted edits by 177.227.68.219 (talk) to last version by APaskulin (WMF))
(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.32
<translate> MediaWiki version:</translate>

Details

deleteLocalPasswords.php is a maintenance script that deletes local passwords for users.

This script is important when you merge your current wiki into a wiki farm and want to delete all local passwords from the database. It processes 100 items in every batch.

Options

Option Description Required
--user If specified, only checks the given user <translate> Optional</translate>
--delete To prevent accidents, you must provide this flag to delete passwords <translate> Optional</translate>
--prefix Instead of deleting, make passwords invalid by prefixing with :null:. Make sure PasswordConfig has a 'null' entry. This is meant for testing before deletion. <translate> Optional</translate>
--unprefix Instead of deleting, undo the effect of --prefix <translate> Optional</translate>

Although the 'delete', 'prefix', and 'unprefix' options are not required, one of them must be used.

Usage

php maintenance/deleteLocalPasswords.php [ --user| --delete| --prefix| --unprefix ]
Terminal

See also