-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Missing authentication support for existing MQTT server #167
Comments
Sorry, that was my mistake. It should be fixed now |
I'm sorry, but I don't find any related changes in the source, what am I missing? so now I can launch find with: This way I can connect to my existing mosquitto server, authenticating with username ( |
So the whole MQTT thing is a bit of a workaround. The problem was that my server needed to start with the configuration file used by FIND. That configuration file specifies the password file and configuration. The MQTT on the public server is a little complicated because it allows users to register themselves on the MQTT server. Its pretty hard to do that I've found, so my workaround was to give FIND admin access to MQTT and allow FIND to hot-reload the configuration file. I'd love to have a better solution to all this, but its tricky because personal users don't really care about having to support a bunch of random people using their MQTT server, whereas I still do :| |
I understand. That is working well so I think that, if you'd just add support for two additional parameters (mqttuser mqttpass), to be passed optionally only in case of an existing mosquitto service, you would solve a simple but, I guess, common problem:
I think you could add the management of the two parameters What do you think? |
Having spent a some time struggling with findserver, I can confirm that is an issue for me as well. Patching mqtt.go as outlined above works, but having options for username and password would make much more sense. |
@aherbjornsen @MrMep Okay, that sounds good. I'll give it a try myself too and then issue an update! |
Same problem here. Any news ? |
If I understood well, when told to use a FIND created MQTT server configuration, the server requires user and password authentication and uses them.
But when using an existing MQTT server, user and passwords are ignored (
mqtt.go
line 33).thanks,
gl
The text was updated successfully, but these errors were encountered: