python-dbus-next
python-dbus-next copied to clipboard
AuthAnnonymous: add SASL compliance
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