Manual:WrapOldPasswords.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.24 |
| 미디어위키 파일: wrapOldPasswords.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| 클래스: | 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.
옵션/인수
| 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. |
Required |
| --verbose | Create verbose output during execution. | Optional |
| --update | Actually wrap passwords | Optional |
사용법
php maintenance/run.php wrapOldPasswords --type PasswordConfigKey [ --verbose| --update ]
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.Dry run
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.