Manual:wrapOldPasswords.php
Appearance
| MediaWiki バージョン: | ≧ 1.24 |
| MediaWiki ファイル: wrapOldPasswords.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| クラス: | WrapOldPasswords |
詳細
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.
オプション/引数
| オプション | 説明 | 必須かどうか |
|---|---|---|
| --type | Type to convert to. This must be one of the layered types from $wgPasswordConfig, meaning either pbkdf2-legacyA or pbkdf2-legacyB. |
必須 |
| --verbose | Create verbose output during execution. | 省略可能 |
| --update | Actually wrap passwords | 省略可能 |
使用法
php maintenance/run.php wrapOldPasswords --type PasswordConfigKey [ --verbose| --update ]
MediaWiki バージョン MediaWiki 1.39 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。
ドライラン
Terminal
$ php maintenance/run.php wrapOldPasswords --type pbkdf2-legacyA 7 user rows found using old password formats. Run script again with --update to update these rows
Updating the password
Terminal
$ php maintenance/run.php wrapOldPasswords --type pbkdf2-legacyA --update 7 users rows updated.