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

mosquitto_passwd only creates (null):$6$(null)$ #1032

Closed
jkoopmann opened this Issue Nov 11, 2018 · 11 comments

Comments

Projects
None yet
4 participants
@jkoopmann
Copy link

jkoopmann commented Nov 11, 2018

Hi,

no matter how I use mosquitt_passwd it only creates these lines:

(null):$6$(null)$

I am running this within a jail in FreeBSD. Any idea?

Regards,
JP

@ralight

This comment has been minimized.

Copy link
Contributor

ralight commented Nov 11, 2018

The first (null) should be the username. The only way this would end up as (null) is if you somehow passed a null pointer as an argument on the command line, which I'm sure isn't the case.

For clarity, could you confirm which version you are using and an example command line?

This is me (on Ubuntu, not FreeBSD), creating a new password file, for example:

https://asciinema.org/a/a7ZPWyXlu3HZ6m22Skb1iWRup

@jkoopmann

This comment has been minimized.

Copy link
Author

jkoopmann commented Nov 11, 2018

https://asciinema.org/a/F5hz1adeZGPrESmRbnodqwfY1

mosquitto 1.5.3

Thanks a lot for looking into it.

@ralight

This comment has been minimized.

Copy link
Contributor

ralight commented Nov 11, 2018

How... peculiar. In that case, can you give me a hint on how to set up a comparable jail so I can do some debugging? I'm not FreeBSD literate. Would this do the job? http://kbeezie.com/freebsd-jail-single-ip/

@ralight

This comment has been minimized.

Copy link
Contributor

ralight commented Nov 11, 2018

Oh, and have you tried it outside the jail?

@jkoopmann

This comment has been minimized.

Copy link
Author

jkoopmann commented Nov 11, 2018

I just tried. Same result. So you should be able to reproduce it with a fresh pkg install mosquitto

@ralight

This comment has been minimized.

Copy link
Contributor

ralight commented Nov 11, 2018

I've just tried on a DigitalOcean droplet with FreeBSD 11.1. I confirm that the version from pkg install mosquitto shows the same behaviour you are seeing. If I download the mosquitto source and compile it myself then it works as expected. Perhaps this needs to be taken to FreeBSD instead?

@jkoopmann

This comment has been minimized.

Copy link
Author

jkoopmann commented Nov 11, 2018

That is very strange. I e-mailed the FreeBSD port maintainer. Let's see what Joe comes up with. Otherwise I will have to compile it myself to get a working version... Or can you drop yours somewhere for temporary download?

@jbenden

This comment has been minimized.

Copy link

jbenden commented Nov 11, 2018

Hello,

I've posted a request on the bug report that relates to the OpenSSL compat code added to this tool.

Please use the bug report as a means for tracking and reporting.

Best regards,
-Joe

@AriSuutariST

This comment has been minimized.

Copy link

AriSuutariST commented Feb 18, 2019

It seems that mosquitto_passwd works in FreeBSD 12.0. The problem affects only 11.x (maybe because the openssl is older version there).

@AriSuutariST

This comment has been minimized.

Copy link

AriSuutariST commented Feb 18, 2019

ralight added a commit that referenced this issue Feb 28, 2019

Fix broken mosquitto_passwd on FreeBSD.
Closes #1032. Thanks to jkoopman, Joseph Benden and Ari Suutari.

Bug: #1032
@ralight

This comment has been minimized.

Copy link
Contributor

ralight commented Feb 28, 2019

This is fixed and will be in 1.5.8 today, thanks for the help everybody.

@ralight ralight closed this Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.