Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic add userName or ClientID #350

Closed
lewis081 opened this issue Jan 9, 2017 · 2 comments
Closed

dynamic add userName or ClientID #350

lewis081 opened this issue Jan 9, 2017 · 2 comments

Comments

@lewis081
Copy link

lewis081 commented Jan 9, 2017

Dear Author:
I have used mosqitto for a servel of days.
Howerver, i did't find a way to solve my problem that I want to use mosqitto server to authenticate user Dynamically.
Now, i just know that i need restart server if i want to load updated passwordfile.But, the result is many clients message will loss if i restart server.Therefore, i want to load passwordfile when the server is running.
Can you give me some tips? Thanks a lot.

@ralight
Copy link
Contributor

ralight commented Jan 20, 2017

For the moment the best option is to use a plugin like mosquitto_auth_plugin.

@PierreF
Copy link
Contributor

PierreF commented Jan 3, 2018

As suggested https://github.com/jpmens/mosquitto-auth-plug/ is probably the best solution.
It is also possible to avoid restarting the server but only reloading the configuration by sending a SIGHUP to the mosquitto process. http:https://mosquitto.org/man/mosquitto-conf-5.html list option that are reloaded, content of password_file is reloaded.

@PierreF PierreF closed this as completed Jan 3, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants