Skip to content

sources/ldap: add just-in-time user sync#22467

Open
smirnovsten wants to merge 2 commits into
goauthentik:mainfrom
smirnovsten:ldap-jit-user
Open

sources/ldap: add just-in-time user sync#22467
smirnovsten wants to merge 2 commits into
goauthentik:mainfrom
smirnovsten:ldap-jit-user

Conversation

@smirnovsten
Copy link
Copy Markdown

@smirnovsten smirnovsten commented May 19, 2026

Details

The PR adds just-in-time user synchronization. When a user attempts to log in and no matching user exists, an LDAP query is made in an attempt to fetch said user. The user is stored locally if successfully fetched.

A new setting (Sync users just-in-time) has been added to the LDAP source to enable and disable this functionality. An additional setting (User just-in-time search filter) has also been added to give the admins some control over how the query is made.

The functionality is useful for authentik deployments that want to get users from very large LDAP systems, where doing a full sync is an expensive operation. Using this feature, users can be synced as they first log in, which results in much lower load.

The changes should be fully backwards-compatible. No new requirements are introduced. The documentation has also been updated.

The PR is loosely based on #10441.

closes #5764
closes #8080


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema and clients have been updated (make gen)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@smirnovsten smirnovsten requested review from a team as code owners May 19, 2026 13:48
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 77370fb
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a0c6a1511e7de0008fd7422
😎 Deploy Preview https://deploy-preview-22467--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
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 77370fb
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a0c6a15d4a8b90008754bef
😎 Deploy Preview https://deploy-preview-22467--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
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 77370fb
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a0c6a151d299300082ae56b
😎 Deploy Preview https://deploy-preview-22467--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.

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.

Is LDAP federation without user sync possible? Fetch LDAP user on demand and without storing password hashes

1 participant