Open moluzhui opened 4 years ago
Hi, @moluzhui In the first, between v3.1-rc.2 with v3.2.6, We remove this feature that allowed to configure Authentication username
and clientid
from .conf
files
So, if you want to use it, you should upgrade to the latest 3.x version or 4.x
Second, before using ./bin/emqx_ctl users add test test
cmds, Plz ensure the emqx_auth_username
plugins started sucessfully :)
Thanks for your answer. @HJianBo . If I want to emqx/emqx-edge:v3.2.4
set the username and password at startup, what should I do? and in which file should I view the username and password I set?
After the emqx started successfully, you can manage usernames
with CLI or REST APIs
./bin/emqx_ctl users add usera passwd
./bin/emqx_ctl users del usera
See: https://github.com/emqx/emqx-auth-username/tree/develop-3.2#rest-api
Make sure you read and understand http://emqtt.io/docs/v2/index.html. Use one of the two templates below and delete the rest.
Expected behavior
CLI add username and password
Actual behavior
not found users command
There is no command line for the
user
EMQ emqx_auth_username.conf error
New content is as follows:
./bin/emqx restart error is as follows
EMQ version
Which branch are you on? If you know the Git revision then add it here as well.
emqx/emqx-edge:v3.2.4, which is a docker images
Docker version
Which docker-engine version?
System
What system do you use? Ubuntu 16.04.6 LTS