Bug #117423 | RETAIN PASSWORD not working with Non Built-in authentication plugins | ||
---|---|---|---|
Submitted: | 10 Feb 10:20 | Modified: | 11 Feb 8:38 |
Reporter: | Pranav Pandey | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Pluggable Authentication | Severity: | S2 (Serious) |
Version: | 8.0.28, 8.0.41 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Feb 10:20]
Pranav Pandey
[10 Feb 13:02]
Pranav Pandey
typo in title
[11 Feb 8:38]
MySQL Verification Team
Hello Pranav Pandey, Thank you for the report and feedback. I tried with different plugin than the one mentioned in the report i.e. used test_plugin_server which is a loadable plugin (not built in) and observed the reported issue. I'm not sure whether this is intended behaviour but seen with not built in plugin. -- 8.0.41 BugNumber=117423 rm -rf $BugNumber/ bin/mysqld --no-defaults --initialize-insecure --basedir=$PWD --datadir=$PWD/$BugNumber --log-error-verbosity=3 bin/mysqld_safe --no-defaults --basedir=$PWD --datadir=$PWD/$BugNumber --core-file --socket=/tmp/mysql.sock --port=3306 --log-error=$PWD/$BugNumber/log.err --log-error-verbosity=3 --secure-file-priv="" --local-infile=1 2>&1 & - mysql> INSTALL PLUGIN test_plugin_server SONAME 'auth_test_plugin.so'; Query OK, 0 rows affected (0.00 sec) mysql> CREATE USER 'testuser'@'localhost' -> IDENTIFIED WITH test_plugin_server -> BY 'testpassword'; Query OK, 0 rows affected (0.00 sec) mysql> ALTER USER 'testuser'@'localhost' IDENTIFIED WITH 'test_plugin_server' BY 'testpassword' RETAIN CURRENT PASSWORD; ERROR 3894 (HY000): Current password can not be retained for user 'testuser'@'localhost' because authentication plugin is being changed. mysql> -- With build in mysql> CREATE USER 'sha2user'@'localhost' -> IDENTIFIED WITH caching_sha2_password BY 'password'; Query OK, 0 rows affected (0.01 sec) mysql> ALTER USER 'sha2user'@'localhost' IDENTIFIED WITH 'caching_sha2_password' BY 'password' RETAIN CURRENT PASSWORD; Query OK, 0 rows affected (0.00 sec) regards, Umesh