[MXS-4248] Improve logging for enable_root_user not enabled instead of "Authentication failed for user Created: 2022-08-19 Updated: 2022-08-29 Resolved: 2022-08-29 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Claudio Nanni | Assignee: | markus makela |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Sprint: | MXS-SPRINT-165 |
| Description |
|
When a user is considered a fully privileges user (not sure how the matching is done) and enable_root_user is disabled, the error message returned is a plain:
The user of course was perfectly able to login directly to the backends. It took me some time to find out that 'claudio'@'%' had too many privileges and was considered as 'root' and so denied login. I think it would be useful to log a more meaningful message like:
|
| Comments |
| Comment by markus makela [ 2022-08-29 ] | |||||||
|
That's not how the parameter works:
The enable_root_user affects only users whose literal name is root. |