JAMES-4215 Implement SASL GSSAPI Kerberos mechanism - #3099
Merged
quantranhong1999 merged 5 commits intoJul 27, 2026
Conversation
Kerberos GSSAPI SASL tokens can exceed SMTP's existing 8,192-byte line limit. Allow administrators to increase the SMTP command and SASL continuation line limit while preserving the existing default. Restrict configured values to between 1,000 bytes and 1 MiB to limit memory exposure.
Introduce a dedicated optional SASL Kerberos module implementing GSSAPI authentication according to RFC 4752 through the JDK SASL provider. Validate the configured service principal and keytab at startup, accept only the auth QOP, inherit auth.requireSSL, and reject Kerberos identities that cannot be mapped injectively to James usernames. Cover configuration, authorization, resource cleanup, keytab validation, and JDK GSSAPI interoperability with an embedded Kerberos KDC.
Start a memory James server backed by an embedded Kerberos KDC and load the GSSAPI mechanism through the extension factory. Cover IMAP and SMTP authentication, STARTTLS availability, exchanges without an initial response, invalid tokens, and unauthorized identities.
Document installation and configuration of the optional Kerberos extension for IMAP and SMTP. Describe service principals, keytabs, identity mapping, TLS policy, supported QOP, extension loading, and SMTP token line limits.
Contributor
|
Can you provide a demo video with a potential client ? |
chibenwa
reviewed
Jul 24, 2026
chibenwa
reviewed
Jul 24, 2026
chibenwa
reviewed
Jul 24, 2026
Arsnael
approved these changes
Jul 27, 2026
Contributor
|
No video in TB? |
Member
Author
I am planning this. Please wait. |
Member
Author
|
Thunderbird + James + Kerberos:
demo.kerberos.Thunderbird.mp4More detail on how to demo: quantranhong1999@26e63bc |
Member
Author
|
Follow-up ticket to improve Kerberos's resource cleanup upon client disconnection: linagora#5577 |
chibenwa
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.