Skip to content

sources/ldap: avoid re-creating connections to LDAP server - #23520

Merged
rissson merged 1 commit into
mainfrom
ldap-source-fix-connection-recreation
Jun 29, 2026
Merged

rissson merged 1 commit into
mainfrom
ldap-source-fix-connection-recreation

Conversation

@rissson

@rissson rissson commented Jun 29, 2026

Copy link
Copy Markdown
Member

closes #22886

Details

What does this PR change?

Why is this change needed?

How was this tested?

Linked issues


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@rissson rissson self-assigned this Jun 29, 2026
@rissson
rissson requested a review from a team as a code owner June 29, 2026 15:04
@rissson rissson moved this from Todo to Needs review in authentik Core Jun 29, 2026
@rissson rissson added the backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 label Jun 29, 2026
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Jun 29, 2026
@netlify

netlify Bot commented Jun 29, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@codecov

codecov Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.25%. Comparing base (b453cee) to head (d040bad).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23520      +/-   ##
==========================================
+ Coverage   93.15%   93.25%   +0.10%     
==========================================
  Files        1037     1037              
  Lines       60658    60660       +2     
  Branches      400      400              
==========================================
+ Hits        56506    56570      +64     
+ Misses       4152     4090      -62     
Flag Coverage Δ
conformance 36.30% <0.00%> (+<0.01%) ⬆️
e2e 41.52% <100.00%> (+0.66%) ⬆️
integration 32.27% <0.00%> (-0.49%) ⬇️
rust 0.00% <ø> (ø)
unit 92.34% <100.00%> (+<0.01%) ⬆️
unit-migrate 92.37% <100.00%> (+<0.01%) ⬆️

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.

@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-d040bad01f26e6d43233bf59de10d9194143c74c
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-d040bad01f26e6d43233bf59de10d9194143c74c

Afterwards, run the upgrade commands from the latest release notes.

@rissson
rissson merged commit 28a5bc1 into main Jun 29, 2026
112 checks passed
@rissson
rissson deleted the ldap-source-fix-connection-recreation branch June 29, 2026 15:51
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jun 29, 2026
@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #23525

rissson added a commit that referenced this pull request Jun 29, 2026
#23520 to version-2026.5) (#23525)

Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Jun 30, 2026
…yers' into web/css/enabling-layers

* refs/remotes/origin/web/css/enabling-layers: (23 commits)
  flows: fix flow executor authentication with jwt  (#16646)
  web: bump playwright from 1.60.0 to 1.61.0 in /web (#23542)
  core, web: update translations (#23534)
  web: bump the eslint group across 1 directory with 3 updates (#23538)
  web: bump type-fest from 5.6.0 to 5.7.0 in /web (#23544)
  lifecycle/aws: bump aws-cdk from 2.1128.0 to 2.1128.1 in /lifecycle/aws (#23535)
  core: bump deepmerge from 2.0 to 2.1.0 (#23539)
  root: fix "make gen" failing with "the input device is not a TTY" (#23546)
  core: bump library/golang from `76a2924` to `68b7145` in /lifecycle/container (#23536)
  core: bump goauthentik/fips-python from `15f00f3` to `6067443` in /lifecycle/container (#23537)
  website/integrations: fix logo missing (#23548)
  translate: Updates for project authentik and language ar_AA (#23516)
  Web/maintenance/explicit model endpoints (#22897)
  providers/oauth: Properly return error via post and for request objects (#23037)
  providers/oauth: Logout remove static html (#23002)
  core: bump dramatiq from 2.1.0 to 2.2.0 (#23381)
  website: bump semver from 7.8.4 to 7.8.5 in /website (#23299)
  web/flows: fix untranslated user field labels in identification stage (#23518)
  tasks/schedules: fix paused schedules getting unpaused on startup (#23521)
  sources/ldap: avoid re-creating connections to LDAP server (#23520)
  ...
kensternberg-authentik added a commit that referenced this pull request Jun 30, 2026
* main: (591 commits)
  core: bump dramatiq from 2.1.0 to 2.2.0 (#23381)
  website: bump semver from 7.8.4 to 7.8.5 in /website (#23299)
  web/flows: fix untranslated user field labels in identification stage (#23518)
  tasks/schedules: fix paused schedules getting unpaused on startup (#23521)
  sources/ldap: avoid re-creating connections to LDAP server (#23520)
  web: bump the bundler group across 1 directory with 3 updates (#23207)
  core: bump webauthn from 2.7.1 to 2.8.0 (#23249)
  lib/sync: add Sync base model for storing past sync history (#23184)
  web: bump launch-editor from 2.13.2 to 2.14.1 (#23309)
  web: bump the eslint group across 1 directory with 2 updates (#23239)
  web: bump uuid from 14.0.0 to 14.0.1 in /web (#23310)
  lifecycle/aws: bump aws-cdk from 2.1126.0 to 2.1128.0 in /lifecycle/aws (#23377)
  website: bump the build group across 1 directory with 6 updates (#23406)
  core: bump coverage[toml] from 7.14.2 to 7.14.3 (#23410)
  core: bump github.com/jellydator/ttlcache/v3 from 3.4.0 to 3.4.1 (#23405)
  core: bump gorm.io/gorm from 1.31.1 to 1.31.2 (#23404)
  ci: bump actions/setup-go from 6.4.0 to 6.5.0 (#23412)
  core: bump library/node from `f9b8bd6` to `a1d9d67` in /lifecycle/container (#23407)
  core: bump goauthentik/fips-python from `fe20a68` to `15f00f3` in /lifecycle/container (#23408)
  core: bump library/node from 26.3.1-trixie to 26.4.0-trixie in /website (#23409)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 2, 2026
* main:
  core: bump dramatiq from 2.1.0 to 2.2.0 (#23381)
  website: bump semver from 7.8.4 to 7.8.5 in /website (#23299)
  web/flows: fix untranslated user field labels in identification stage (#23518)
  tasks/schedules: fix paused schedules getting unpaused on startup (#23521)
  sources/ldap: avoid re-creating connections to LDAP server (#23520)
  web: bump the bundler group across 1 directory with 3 updates (#23207)
  core: bump webauthn from 2.7.1 to 2.8.0 (#23249)
  lib/sync: add Sync base model for storing past sync history (#23184)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

No LDAP Sync after migrate 2026.2.3 to 2026.5.2

2 participants