Comments (9)
Are there any plans to support this?
from moquette.
Yes, it's on the stack of todos. Before I've to introduce the concept of plugins.
from moquette.
Implemented ACL with same synthax used in Mosquitto.
from moquette.
Hey Adnsel, I am having a problem with the access control list in Moquttee, It seems that it is working so strange, I have posted a question on stack overflow, here it is http://stackoverflow.com/questions/31511811/moquette-users-have-privilege-different-than-what-is-written-in-the-access-contr
could you check please
from moquette.
Hi William,
I've seen it, I'll check it on the first free slot during night development.
Andrea
On Mon, Jul 20, 2015 at 10:28 AM, William Kinaan [email protected]
wrote:
Hey Adnsel, I am having a problem with the access control list in
Moquttee, It seems that it is working so strange, I have posted a question
on stack overflow, here it is
http://stackoverflow.com/questions/31511811/moquette-users-have-privilege-different-than-what-is-written-in-the-access-contr
could you check please—
Reply to this email directly or view it on GitHub
https://github.com/andsel/moquette/issues/10#issuecomment-122812085.
from moquette.
Answered, probably you refer or touch the bad file, If you can't fix please refer to mailining list or github issues, posting your moquette.conf, acl.conf and password.conf
Andrea
from moquette.
Hi Andsel,
I highly doubt that there is a bug in the authorization part of my version, because look at the code for receiving a subscribe event
@MQTTMessage(message = SubscribeMessage.class)
void processSubscribe(ServerChannel session, SubscribeMessage msg) {
String clientID = (String) session
.getAttribute(NettyChannel.ATTR_KEY_CLIENTID);
boolean cleanSession = (Boolean) session
.getAttribute(NettyChannel.ATTR_KEY_CLEANSESSION);
LOG.debug("SUBSCRIBE client <{}> packetID {}", clientID,
msg.getMessageID());
// ack the client
SubAckMessage ackMessage = new SubAckMessage();
ackMessage.setMessageID(msg.getMessageID());
for (SubscribeMessage.Couple req : msg.subscriptions()) {
AbstractMessage.QOSType qos = AbstractMessage.QOSType.values()[req
.getQos()];
Subscription newSubscription = new Subscription(clientID,
req.getTopicFilter(), qos, cleanSession);
boolean valid = subscribeSingleTopic(newSubscription,
req.getTopicFilter());
ackMessage.addType(valid ? qos : AbstractMessage.QOSType.FAILURE);
}
There is no call for the can.read function.
That is the problem, I am even developing a plugin for authorization, and the authorization on publishing is working perfectly, but the authorization on subscription is not working.
May you check please?
Many thanks,
from moquette.
Hi man,
So sorry, it is working perfectly :)
And my plugin for authorization is working now
Appreciate it
from moquette.
Ok, great!
from moquette.
Related Issues (20)
- about remove root HOT 3
- Extremely slow propagation behavior HOT 2
- immediate_buffer_flush should be in configuration file, defaulting to true. HOT 8
- if auth is enabled or not, it doesn't seem to be taken into account, but a wrong password is HOT 8
- The enabled by default telemetry requires deprecated `PERSISTENT_STORE_PROPERTY_NAME` constant HOT 1
- Broker restart and clear connections,but aslo can response client PINGEQ message HOT 7
- Feature proposal: set a session expiry interval by configuration
- [Question] Potential memory leak HOT 21
- IllegalArgumentException thrown from PostOffice class
- Subscriptions not removed on dropped connections HOT 1
- Manage Will Delay Interval for MQTT5
- Does the moquette supports MQTT 5? (question) HOT 2
- io.netty.util.IllegalReferenceCountException: refCnt: 0 HOT 1
- Change signature of IRetainedRepository.retainedOnTopic to reflect the fact it return unordered collection HOT 1
- Generalize ExpirableTracker to become an scheduler service
- Server can define its own Keep Alive in CONNACK
- [Meta] Implement Shared Subscriptions HOT 1
- Support topic that starts with `$` character
- The official example code is misleading and may cause Java OutOfMemoryError. HOT 1
- Implement Subscription identifier
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 moquette.