[MDEV-19057] PASSWORD EXPIRE in multi-user CREATE or ALTER works inconsistently with other user options Created: 2019-03-27 Updated: 2019-03-27 Resolved: 2019-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Parser |
| Affects Version/s: | 10.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When PASSWORD EXPIRE ... option is provided for the last user in multi-user CREATE or ALTER, it applies to all users in that query:
When it's provided for a non-last user, it causes a parser error:
Other (older) options work per user, so it appears to be inconsistent. |
| Comments |
| Comment by Sergei Golubchik [ 2019-03-27 ] | |||||||||||||||
|
Not quite. The syntax is (https://mariadb.com/kb/en/library/create-user/):
That is, user name and the password can be specified many times, but all options, that is, ssl requirements, resource limits, password expiration and account locking — all are specified once per statement and affect all specified users. |