Comments (2)
What you're seeing there is correct; that's how Mosquitto works. The user mihai
was authenticated successfully, and may subscribe to any topic. At the moment of publish, Mosquitto decides whether the published message is to be given to the subscribing user. In the above case, if mihai
has no read ACL for test/test
, that user will not get the message.
from mosquitto-auth-plug.
Thank you making it clear!
There is no issue.
Here is the log:
1418923374: New connection from 192.168.1.1 on port 1883.
1418923374: |-- mosquitto_auth_unpwd_check(user1)
1418923374: |-- ** checking backend mysql
1418923374: |-- getuser(user1) AUTHENTICATED=1 by mysql
1418923374: New client connected from 192.168.1.1 as mosqpub/42235-Mihais-Ma (c1, k60, uuser1).
1418923374: Sending CONNACK to mosqpub/42235-Mihais-Ma (0)
1418923374: |-- mosquitto_auth_acl_check(..., mosqpub/42235-Mihais-Ma, user1, test/message, MOSQ_ACL_WRITE)
1418923374: |-- user user1 was authenticated in back-end 0 (mysql)
1418923374: |-- mysql: topic_matches(/test/test, /test/test) == 0
1418923374: |-- mysql: topic_matches(test/keepalive, test/keepalive) == 0
1418923374: |-- mysql: topic_matches(test/message, test/message) == 1
1418923374: |-- aclcheck(user1, test/message, 2) AUTHORIZED=1 by mysql
1418923374: |-- Cached [E5F10C5D269EEC44C8D1C571AB1961FBAA8A37F6] for (mosqpub/42235-Mihais-Ma,user1,2)
1418923374: Received PUBLISH from mosqpub/42235-Mihais-Ma (d0, q0, r0, m0, 'test/message', ... (4 bytes))
1418923374: |-- mosquitto_auth_acl_check(..., mosqsub/42230-Mihais-Ma, user2, test/message, MOSQ_ACL_READ)
1418923374: |-- user user2 was authenticated in back-end 0 (mysql)
1418923374: |-- mysql: topic_matches(test/test, test/test) == 0
1418923374: |-- aclcheck(user2, test/message, 1) AUTHORIZED=0 by mysql
1418923374: |-- Cached [6EA86308A773655F904F0A330C8351A04A985B1C] for (mosqsub/42230-Mihais-Ma,user2,1)
1418923374: Received DISCONNECT from mosqpub/42235-Mihais-Ma
from mosquitto-auth-plug.
Related Issues (20)
- ACL issue with JWT backend HOT 2
- Inconsistencies between HTTP and JWT code & configuration HOT 3
- Merge be-http and be-jwt into one
- conf->hostname might be uninitialized in be_jwt_init() HOT 2
- ACL issue with %d placeholder - MySQL backend HOT 4
- Compilation Error HOT 1
- Compilation Error config.h: No such file or directory HOT 19
- problem with sizeof HOT 1
- Compile error with Mosquitto 1.5.5 and latest Auth-plug version HOT 2
- Websocket error: connection was lost (verbose output) HOT 4
- given the current vesion of Auth-plug, what version of mosquitto and libwebsockets should I install? HOT 1
- Fact that a user is superuser is not cached HOT 1
- mysql problem acl SUB/PUB HOT 1
- Cannot Load Auth plug-Error HOT 8
- mosquitto_client_id: symbol not found HOT 5
- Failed to create file named auth-plug.so
- Segmentation fault with BE_PSK and postgres backend HOT 1
- HTTP backend doesn't connect, instead rejects subscriptions HOT 1
- HTTP backend not calling api HOT 1
- Issue subscribing with wildcard in MongoDB and maybe MySQL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mosquitto-auth-plug.