You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beckettsean
changed the title
Turning on authentication silently fails if there is no admin account created
Log that authentication cannot be enabled if there is no admin account created
Jul 15, 2015
For 0.9.2, when authentication is turned on and no users exist, only the CREATE USER [user] WITH PASSWORD [user] WITH ALL PRIVILEGES command can be executed (see PR #3244). If one or more users exist, authorization is enforced as usual.
Once PR #3427 is merged, the logs will note whether authentication is enabled or disabled.
If you enable auth in the config without creating a new admin user then restart the service there is no mention of this in the logs.
I know this is kind of expected behaviour, having it logged on startup would be good though something like:
[WARN] Unable to enable Authentication, no Admin users exist.
The text was updated successfully, but these errors were encountered: