emqx use of acl.conf

allow_anonymous = true do not say, open hanging open like this

Now discuss allow_anonymous = false, so you will find, client connections are not the

Later we found two things are connected and privileges. . .

After allow_anonymous = false, you want to connect client up, you need to start emqx_auth_username plug-ins, and there you can configure the user name and password
, such as:

ADMIN = auth.user.1.username
auth.user.1.password = public

so that you can find, use the above user name and password you can connect the client

Acl.conf may then be arranged in the admin user privileges, such as:
{the allow, {User, "admin"}, PubSub, [ "admin / #"]}.

In this way, admin that users can subscribe to and publish admin / # a class theme

Of course, there is a configuration

## Allow or deny if no ACL rules matched.
##
## Value: allow | deny
acl_nomatch = deny

This is in line with acl.conf use, if changed to allow, admin user rights will be enormous, not matching the authority also have changed to deny easy to understand, is what you configure permissions, admin users have permissions what

Guess you like

Origin www.cnblogs.com/myfrank/p/11810115.html