Skip to content

sources/ldap: support SASL external - #26067

Merged
BeryJu merged 7 commits into
goauthentik:mainfrom
jsachs:feature/ldap-support-sasl-external
Sep 15, 2026
Merged

BeryJu merged 7 commits into
goauthentik:mainfrom
jsachs:feature/ldap-support-sasl-external

Conversation

@jsachs

@jsachs jsachs commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Details

SASL was previously explored here: #13792

What does this PR change?

Add SASL EXTERNAL as an LDAP source service bind method. This means that sync and writeback operatinos can be performed using TLS client cert verification.

User verification using a password still depends on SIMPLE binds.

Why is this change needed?

This is a standard LDAP auth mechanism, which is useful for sync/writeback operations as the existing TLS connection can be reused, rather than needing to rely on a user-level bind with an admin password.

How was this tested?

  • unit tests added
  • e2e testing with an openldap container added
  • screenshot for new admin interface:
image

Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@netlify

netlify Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 827230e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aa9286290d2580008b33c31
😎 Deploy Preview https://deploy-preview-26067--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 827230e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aa928620ba91a0008392b5f
😎 Deploy Preview https://deploy-preview-26067--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 827230e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aa92862e742d10008ed75ea
😎 Deploy Preview https://deploy-preview-26067--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jsachs
jsachs force-pushed the feature/ldap-support-sasl-external branch from 4e70a62 to 4f3bfc1 Compare September 11, 2026 16:23
@jsachs

jsachs commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

@dewi-tik are there any other e2e tests you'd like me to consider in addition to the openldap container?

Also, I'm not sure if I made the correct UI decision here. I could see this also being a toggle for now.

@jsachs
jsachs marked this pull request as ready for review September 11, 2026 16:34
@jsachs
jsachs requested review from a team as code owners September 11, 2026 16:34
@codecov

codecov Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.65772% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.92%. Comparing base (0e9a19a) to head (8789ffc).

Files with missing lines Patch % Lines
authentik/sources/ldap/models.py 92.59% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #26067      +/-   ##
==========================================
+ Coverage   91.90%   91.92%   +0.01%     
==========================================
  Files        1171     1171              
  Lines       75723    75855     +132     
  Branches     4056     4056              
==========================================
+ Hits        69595    69731     +136     
+ Misses       6086     6082       -4     
  Partials       42       42              
Flag Coverage Δ
conformance 33.62% <6.71%> (-0.05%) ⬇️
e2e 38.34% <16.77%> (+<0.01%) ⬆️
integration 29.90% <6.71%> (-0.49%) ⬇️
rust 42.89% <ø> (ø)
unit 93.50% <98.65%> (+0.03%) ⬆️
unit-migrate 93.52% <98.65%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than those two things, lgtm

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Sep 15, 2026
@BeryJu
BeryJu merged commit 849e7af into goauthentik:main Sep 15, 2026
138 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants