New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broker configuration read incorrectly (conf.d with per_listener acl settings) #1149
Comments
Thanks for the report, this has been fixed in the fixes branch with two changes, the first to return an error if per_listener_settings is set to true after other security options (which was already happening in the main config file, but not in subsequent files), and the config files are sorted before loading. |
Hi all..I just compiled and installed mosquitto 1.5.8, And got the same error message: 1554136495: Error: per_listener_settings must be set before any other security settings. my configuration file is as followed: mosquitto.conf
and inside of conf.d directory there is the next configuration file:
I got the same error message and any of the security rules works.. even if I joined both config files like this:
Some help about it?? |
Are they your entire config files? I can see in the final example it seems to start at line 6. If I use the config file you have there, it works fine. |
version:
mosquitto 1.5.5 on debian
configuration:
mosquitto.conf file:
include_dir /tmp/conf.d
two files in conf.d:
/tmp/conf.d/default.conf:
/tmp/conf.d/listener.conf:
acl file /tmp/mosq-acl:
password_file /tmp/mosq-user (password is "test"):
steps to reproduce:
use above configuration, connect to port 10002 as user tester1234:
observed behaviour:
the connection to the broker is successful, but the connection should be refused.
misc:
The text was updated successfully, but these errors were encountered: