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
Closed

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

jkoopmann opened this issue Nov 11, 2018 · 11 comments

Comments

@jkoopmann
Copy link

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
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
Copy link
Author

https://asciinema.org/a/F5hz1adeZGPrESmRbnodqwfY1

mosquitto 1.5.3

Thanks a lot for looking into it.

@ralight
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:https://kbeezie.com/freebsd-jail-single-ip/

@ralight
Copy link
Contributor

ralight commented Nov 11, 2018

Oh, and have you tried it outside the jail?

@jkoopmann
Copy link
Author

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

@ralight
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
Copy link
Author

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
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

@ASunc
Copy link

ASunc 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).

@ASunc
Copy link

ASunc commented Feb 18, 2019

Here is a new issue with a fix:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235834

ralight added a commit that referenced this issue Feb 28, 2019
Closes #1032. Thanks to jkoopman, Joseph Benden and Ari Suutari.

Bug: #1032
@ralight
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 as completed Feb 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 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

4 participants