Bug #112132 | The configuration of password_history does not take effect | ||
---|---|---|---|
Submitted: | 22 Aug 2023 8:58 | Modified: | 25 Aug 2023 5:22 |
Reporter: | zhenxing yu | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0.33 | OS: | Linux (CentOS Linux release 7.5.1804 (Core)) |
Assigned to: | CPU Architecture: | x86 (Intel(R) Xeon(R) CPU E5-4620 v2 @ 2.60GHz) | |
Tags: | password_history, password_reuse_interval |
[22 Aug 2023 8:58]
zhenxing yu
[22 Aug 2023 9:32]
zhenxing yu
test_case SQL file
Attachment: test_case.sql (application/octet-stream, text), 11.32 KiB.
[24 Aug 2023 12:46]
MySQL Verification Team
Hello Zhenxing yu, Thank you for the bug report. Imho this is not a bug. Password_history - This variable defines the global policy for controlling reuse of previous passwords based on required minimum number of password changes. It doesn't mean it should store only defined number of passwords. In your case 6, it means password can be changed only after 6th attempt. Regards, Ashwini Patil
[25 Aug 2023 5:22]
zhenxing yu
Thanks for the answer. From the point of view of actual verification, the password_reuse_interval parameter and the password_history parameter have effective priority. If the password_reuse_interval is set to a value greater than 0, only the configuration specified by the password_reuse_interval parameter will be used. Only when the password_reuse_interval is set to 0, it will It takes effect according to the parameter configuration of password_history. Is this logic in design?