【问题标题】:Erlang MQTT configuration broken?Erlang MQTT 配置损坏?
【发布时间】:2017-07-30 09:11:44
【问题描述】:

在 Erlang eMQ 中有一种方法(根据 thisthis)可以在我的 MQTT Broker 中启用 emq_auth_username 的插件,这意味着我可以配置我的代理以允许连接基础在我的 etc/emq_auth_username.conf 文件中。

我确实创建了文件并放入了类似的条目中......

然而我的客户没有进来:

我的文件看起来像:

auth.user.$N.username = 管理员

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

因为我试图了解它是如何工作的......

任何提示如何在此文件中添加新凭据???

谢谢!

【问题讨论】:

    标签: mqtt iot broker emq


    【解决方案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..
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多