Skip to content

Accept SASL EXTERNAL auth without an initial identity - #316

Merged
hypfvieh merged 1 commit into
master-5xfrom
fix-sasl-external-5x
Sep 21, 2026
Merged

hypfvieh merged 1 commit into
master-5xfrom
fix-sasl-external-5x

Conversation

@hypfvieh

Copy link
Copy Markdown
Owner

Clients such as godbus (since commit 31b5df7) send a bare "AUTH EXTERNAL" without the hex-encoded UID, relying solely on the kernel-verified socket credentials. Per the D-Bus spec, a server must then ask for the identity via an empty DATA exchange instead of rejecting the attempt outright. The previous code rejected such requests immediately, causing the peer to abort the connection and the next read to fail with SocketClosedException.

Backport of the master fix to master-5x.

Clients such as godbus (since commit 31b5df7) send a bare "AUTH EXTERNAL"
without the hex-encoded UID, relying solely on the kernel-verified socket
credentials. Per the D-Bus spec, a server must then ask for the identity
via an empty DATA exchange instead of rejecting the attempt outright.
The previous code rejected such requests immediately, causing the peer
to abort the connection and the next read to fail with
SocketClosedException.

Backport of the master fix to master-5x.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@hypfvieh hypfvieh changed the title Accept SASL EXTERNAL auth without an initial identity (fixes #294) Accept SASL EXTERNAL auth without an initial identity Sep 21, 2026
@hypfvieh
hypfvieh merged commit 5cf2fa7 into master-5x Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant