Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Mosquitto remote_password for bridge with space character

Hello Mikkel,

first of all many thanks for the quick answer and your efforts to dig into this - highly appreciated. I posted the question for a workaround here too: - maybe there is a way around from azure side.

I will create a bug in bugzilla and hope there is a fix soon.

Sebastian Koch

On 28/04/16 19:10, "mosquitto-dev-bounces@xxxxxxxxxxx on behalf of Mikkel Kirkgaard Nielsen" <mosquitto-dev-bounces@xxxxxxxxxxx on behalf of miki@xxxxxxxxx> wrote:

>Hash: SHA1
>Hi Sebastian.
>On 2016-04-28 15:55, Sebastian Koch wrote:
>> does anyone know how the password is parsed from the config file
>> by mosquitto, is the space the problem here?
>The space will give you trouble as the code of src/conf.c line 1536
>will parse only until the first space after "remote_password", so that
>is a no-go.
>- ---
>token = strtok_r(NULL, " ", &saveptr);
>- ---
>HTML-encoding would make mosquitto use the full string, but maybe the
>other end (the Azure stuff) won't try to decode it. Their docs may say
>something about that.
>Any quotation marks or escaping attempts will become part of the
>password string, so that won't work unless agreed upon with the other
>end. And it won't make a difference to the space parsing either.
>As far as I can see the MQTT v3.1.1 standard doesn't limit the
>contents of the PASSWORD field beyond "binary"
>So I guess the inability to use a password containing a space is a
>flaw of the current Mosquitto implementation.
>- -- 
>    Mikkel
>Version: GnuPG v2
>mosquitto-dev mailing list
>To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top