Skip to content

Add support for password expiration and sandbox mode. #440

@terjeros

Description

@terjeros

MySQL 5.7 and newer can set password for account expired:

https://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html

When this is done, account can login, however all what can be done is to
reset password. It seems mycli don't understand this feature:

mysql root@localhost:(none)> CREATE USER 'tst'@'localhost' IDENTIFIED BY 'MyNewPass4.';
Query OK, 0 rows affected
Time: 0.002s
mysql root@localhost:(none)> ALTER USER 'tst'@'localhost' PASSWORD EXPIRE;
Query OK, 0 rows affected
Time: 0.001s
mysql root@localhost:(none)> exit
Goodbye!
$ mycli -utst
Password:
(1862, 'Your password has expired. To log in you must change it using a client that supports expired passwords.')

Would be nice if mycli could add such support.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions