Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Accessing the client id when validating a username / password

I've modified mosquitto to have the clientId passed in the auth callback.

But mosquitto 1.4 has an option that may help:

use_username_as_clientid [ true | false ]
Set use_username_as_clientid to true to replace the clientid that a client connected with with its username. This allows authentication to be tied to the clientid, which means that it is possible to prevent one client disconnecting another by using the same clientid. Defaults to false.
If a client connects with no username it will be disconnected as not authorised when this option is set to true. Do not use in conjunction with clientid_prefixes.
See also use_identity_as_username.
Not reloaded on reload signal.



On Mon, Feb 23, 2015 at 8:44 AM, Paul Fremantle <paul.fremantle@xxxxxxxxxx> wrote:
Alexandre

Thanks. I've used that before. The problem I'm having is that (as far as I can see) the clientID is not passed to the auth_plugin at connect time, but maybe I'm missing something.

Paul

On 23 February 2015 at 11:31, Alexandre Zia <alexandre.zia@xxxxxxxxxx> wrote:
Hi Paul,

  We wrote our own plugin, but there is a rich one that may fit to your needs here:  https://github.com/jpmens/mosquitto-auth-plug


Regards,
Alexandre Zia

On Mon, Feb 23, 2015 at 8:23 AM, Paul Fremantle <paul.fremantle@xxxxxxxxxx> wrote:
Roger, Mosquitto team

I'd like to write a security/auth pluging that can access the client id of the client when the username/password is validated on connect. Is that possible?

Paul

--
Paul Fremantle
Part-time PhD student - School of Computing
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, Apache Member
07740 199 729

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



--

Alexandre Zia
Security
+55 19 3518 5500
+55 19 98153 4618
skype: zia.movile


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



--
Paul Fremantle
Part-time PhD student - School of Computing
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, Apache Member
07740 199 729

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



--

Alexandre Zia
Security
+55 19 3518 5500
+55 19 98153 4618
skype: zia.movile


Back to the top