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

Dashes in MQTT usernames - inconsistent behavior #1833

Closed
bogorad opened this issue Sep 26, 2020 · 3 comments
Closed

Dashes in MQTT usernames - inconsistent behavior #1833

bogorad opened this issue Sep 26, 2020 · 3 comments

Comments

@bogorad
Copy link

bogorad commented Sep 26, 2020

mosquitto_pass is okay with usernames like location-type-name, processes username/pass, stores in the password file. But on connection, the authentication fails.

Should either ban those in mosquitto_pass or allow authentication.

@ralight
Copy link
Contributor

ralight commented Sep 26, 2020

That's not the behaviour that I see. Here is a recording of me testing this out:

https://asciinema.org/a/Nqme3T1SEzINDx4pFsiLCFdmr

@ralight
Copy link
Contributor

ralight commented Sep 26, 2020

I suspect you are really seeing problems when using the : character, which is documented as being forbidden, but isn't rejected by mosquitto_passwd. I've changed that so it is now rejected. If you still do have a problem with the literal username location-type-name please let me know.

@bogorad
Copy link
Author

bogorad commented Sep 27, 2020

@ralight - I was having consistent problems with usernames containing dashes over TLS, and they went away when I disposed of dashes. Now I've done more testing, including via TLS, and it all works. Sorry for the false alarm, and thank you for responding!

@bogorad bogorad closed this as completed Sep 27, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
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

2 participants