[MDEV-31341] skip-name-resolve mode doesn't work with user@localhost Created: 2023-05-25 Updated: 2023-06-26 Resolved: 2023-06-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.11.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sebastian Weiser | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows |
||
| Description |
|
The documentation for skip-name-resolve says: I have a user repl_status@localhost configured. This works fine with skip-name-resolve=0. With skip-name-resolve=1, I get one of the following warnings in the log file (depending what IP version is used): Also note that the log file has warnings during startup for ignored entries like this: Option 1: localhost isn't supposed to work: Then the documentation is wrong and the warning is missing. Side note: HeidiSQL has a dialog window for user accounts, in which it displays lines with host names in grey color when skip-name-resolve=1. It doesn't do that for localhost. |
| Comments |
| Comment by Sergei Golubchik [ 2023-06-20 ] |
|
I'm not sure I understand what is the bug here. What doesn't work, exactly? |
| Comment by Sebastian Weiser [ 2023-06-26 ] |
|
The bug is that the implementation does not match the documentation (or at least the way I interpret the documentation). Whether that means that the documentation is wrong or the implementation is not for me to say. I understand from the documentation: The special term "localhost" will still work with skip_name_resolve=1. For reference, this is what the doc says exactly:
I read: "localhost" is fine if skip_name_reslove=1. |
| Comment by Sergei Golubchik [ 2023-06-26 ] |
|
Yes, "localhost" is fine. But it doesn't mean you can connect as 'repl_status'@'127.0.0.1'. Because 127.0.0.1 is not equal to localhost. It's an ip address that needs to be resolved to match localhost. And you have disabled name resolution. If you connect as repl_status@localhost (via named pipes) you'll be able to connect if skip_name_reslove=1. |