python-dbus-next icon indicating copy to clipboard operation
python-dbus-next copied to clipboard

AuthAnnonymous: add SASL compliance

Open leiflm opened this issue 3 years ago • 0 comments

The dbus specification states that its authentication mechanism is a SASL profile.

Unless (empty) data is provided with the mechanism right away (i.e. AUTH ANONYMOUS ), SASL compliant authentication responds with a DATA message. While some dbus implementations do not do this, the sd-bus does as of systemd >=v242-rc1 [0].

This fixes the response in a backward compatible way by sending back an empty DATA message.

[0] https://github.com/systemd/systemd/commit/2010873b4b49b223e0cc07d28205b09c693ef005

leiflm avatar Jun 21 '22 15:06 leiflm