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
ACL issue: not able to connect with username that is not defined in aclfile #1164
Comments
I think it is the same problem that was described in #1162. |
Exactly. For others who experience the same issue use the following commands as a temporary soln // Use fixes branch from mosquitto repository git clone https://github.com/eclipse/mosquitto.git // Build the source and install |
Produce error if this is not the case. Closes eclipse#1164, thanks to momoskitto.
My ACL file contents look like this
`# This affects access control with no username
topic readwrite /mediatronix/anonymous/#`
`# This affects all clients
topic readwrite /test/#`
`# This only affects clients with usename
user testuser123
topic readwrite /test/#`
`# This affects all clients
pattern readwrite /test/%u/#`
///////////////////////////////////
I am able to connect with username testuser123, which is mentioned in the acl file. But when other usernames are used in client, the following error occurs,
Socket error on client , disconnecting.
The same acl is working fine for mosquitto version 1.4.8, but not working for new version 1.4.15.
More info:
Tested with Ubuntu 18.04 and 1.4.15 - Acl issue as mentioned above
Tested with Ubuntu 16.04 and 1.4.8 - ACL working fine
The text was updated successfully, but these errors were encountered: