Skip to content
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

Closed
elementzonline opened this issue Feb 15, 2019 · 2 comments

Comments

@elementzonline
Copy link

elementzonline commented Feb 15, 2019

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

@elementzonline elementzonline changed the title ACL issue: not able to connect with username defined in aclfile ACL issue: not able to connect with username that is not defined in aclfile Feb 15, 2019
@quonb
Copy link

quonb commented Feb 15, 2019

I think it is the same problem that was described in #1162.

@elementzonline
Copy link
Author

I think it is the same problem that was described in #1162.

Exactly.
Rectified the issue by installing the mosquitto server from the fixes branch.

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
cd mosquitto
git checkout -b origin/fixes
git pull

// Build the source and install
make
sudo make install

kumar003vinod pushed a commit to kumar003vinod/mosquitto that referenced this issue Feb 17, 2019
Produce error if this is not the case. Closes eclipse#1164, thanks to
momoskitto.
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants