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

is it possible to create username and password for clients? #49

Open
jbsaibes opened this issue Aug 24, 2024 · 7 comments
Open

is it possible to create username and password for clients? #49

jbsaibes opened this issue Aug 24, 2024 · 7 comments

Comments

@jbsaibes
Copy link

i was wondering if it is possible to assign a username/password for clients that would connect to the broker?

@nopnop2002
Copy link
Owner

This is a good idea.
Try latest.
config-8

@jbsaibes
Copy link
Author

yes i just tried and it works thanks! next request :) two nice features to have :

  1. having a list of clients ( cid, user and password) that broker can use for authentication
  2. having list of topics that above clients can subscribe/publish to

@nopnop2002
Copy link
Owner

nopnop2002 commented Aug 25, 2024

Are there any open source brokers with this kind of functionality?

If there is one, I would like to imitate its implementation and settings..

There are no plans to implement unique access restrictions specific to this broker.

@jbsaibes
Copy link
Author

yes there is https://github.com/eclipse/mosquitto it one of the most popular mqtt brokers

@nopnop2002
Copy link
Owner

nopnop2002 commented Aug 25, 2024

I'm using Mosquito, but I don't know the settings to achieve this.

In mosquitto, what settings do I need to do to achieve this?

having a list of clients ( cid, user and password) that broker can use for authentication
having list of topics that above clients can subscribe/publish to

@jbsaibes
Copy link
Author

https://mosquitto.org/man/mosquitto-conf-5.html check general options>acl file option and "password_file" option .there is a description there.

@nopnop2002
Copy link
Owner

nopnop2002 commented Aug 25, 2024

Thank you for the information.
I'll try to investigate, but it will take some time.

If we use a password file, we will need a file system like SPIFFS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants