Description:
ALTER USER marks passwords as expired
How to repeat:
mysql> create user mytest@localhost;
--------------
create user mytest@localhost
--------------
Query OK, 0 rows affected (0,00 sec)
mysql> select user,host,plugin,password_expired from mysql.user where user='mytest';
--------------
select user,host,plugin,password_expired from mysql.user where user='mytest'
--------------
+--------+-----------+-----------------------+------------------+
| user | host | plugin | password_expired |
+--------+-----------+-----------------------+------------------+
| mytest | localhost | mysql_native_password | N |
+--------+-----------+-----------------------+------------------+
1 row in set (0,00 sec)
mysql> ALTER USER mytest@localhost IDENTIFIED WITH authentication_pam;
--------------
ALTER USER mytest@localhost IDENTIFIED WITH authentication_pam
--------------
Query OK, 0 rows affected (0,00 sec)
mysql> select user,host,plugin,password_expired from mysql.user where user='mytest';
--------------
select user,host,plugin,password_expired from mysql.user where user='mytest'
--------------
+--------+-----------+--------------------+------------------+
| user | host | plugin | password_expired |
+--------+-----------+--------------------+------------------+
| mytest | localhost | authentication_pam | Y |
+--------+-----------+--------------------+------------------+
1 row in set (0,00 sec)
Suggested fix:
Don't mark passwords as expired for plugins that don't use the local password store