在Erlang eMQ中有一种方法(根据this和this)在我的MQTT Broker中启用 emq_auth_username 的插件,这意味着我可以配置我的代理允许连接基于我的 etc / emq_auth_username.conf 文件。
我确实创建了文件并放入类似的条目......
然而myclient没有加入:
我的文件如下:
auth.user。$ N.username = admin
auth.user。$ N.password = public
auth.user。$ 1.username = dummy_username
auth.user。$ 1.password = dummy_password
auth.user。$ N.username = dummy_username
auth.user。$ N.password = dummy_password
因为我试图了解它是如何运作的....
任何提示如何在此文件中添加新凭据???
谢谢!
答案 0 :(得分:1)
我认为你实际上需要这样的东西......
auth.user.1.username=fred
auth.user.1.password=bl0665
auth.user.2.username=jane
auth.user.2.password=j4n3
auth.user.3.username=...
...etc..