[MXS-605] MaxScale not authenticating database users Created: 2016-03-07 Updated: 2016-04-15 Resolved: 2016-04-15 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 1.3.0 |
| Fix Version/s: | 1.4.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rafael | Assignee: | Timofey Turenko |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 14.04 LTS MairaDB 10.0.24 |
||
| Description |
|
Unable to authenticate users other than pma (phpmyadmin), root and MaxScale service account. For example, I have a test user (wordpress) that should be able to connect to database wordpress. Here is the debug log after a failed attempt: 2016-03-07 01:21:32 debug : 140318328051584 [poll_waitevents] epoll_wait found 1 fds Looking at the backend server, grants for wordpress user ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Comments |
| Comment by markus makela [ 2016-03-07 ] | ||||||||||
|
What are the grants for the MaxScale service user? I noted that the wordpress user only has grants to the wordpress database so granting the permissions to that might have an effect. The authentication should still work even if MaxScale doesn't have read access to the mysql.db table. Excerpt from the KB:
Please also enable the authentication warnings with log_auth_warnings=true and provide the error logs that will be generated this option enabled. For more details about these parameters and MaxScale's configuration in general, please refer to the MaxScale configuration guide on KB: https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale/maxscale-configuration-usage-scenarios/ | ||||||||||
| Comment by Rafael [ 2016-03-08 ] | ||||||||||
|
MaxScale service user has GRANT full access on all databases on the server: here are the debug logs: 2016-03-07 20:17:24 debug : 140360515295104 [poll_waitevents] epoll_wait found 1 fds | ||||||||||
| Comment by markus makela [ 2016-03-18 ] | ||||||||||
|
Could you execute the following query on the backend database:
This is the query that MaxScale executes when retrieving database users. Check if the wordpress user is in that list. | ||||||||||
| Comment by markus makela [ 2016-03-21 ] | ||||||||||
|
Please test this with the 1.4.0 version of MaxScale. | ||||||||||
| Comment by markus makela [ 2016-04-15 ] | ||||||||||
|
ralphy I'm closing this until further progress is made. If possible, test this with 1.4.1 and reopen it if it still happens. |