Skip to content

sources/ldap/freeipa: handle list-valued krbLastPwdChange - #20600

Merged
rissson merged 5 commits into
goauthentik:mainfrom
Oluwatobi-Mustapha:fix/freeipa-krblastpwdchange-list-20145
Aug 28, 2026
Merged

rissson merged 5 commits into
goauthentik:mainfrom
Oluwatobi-Mustapha:fix/freeipa-krblastpwdchange-list-20145

Conversation

@Oluwatobi-Mustapha

@Oluwatobi-Mustapha Oluwatobi-Mustapha commented Feb 26, 2026 •

Copy link
Copy Markdown
Contributor

fixes #20145

Details

  • Flatten krbLastPwdChange before timezone normalization in FreeIPA sync.
  • Add regression test for list-valued krbLastPwdChange.

Checks

  • uv run python manage.py test --keepdb --noinput authentik/sources/ldap/tests/test_sync.py
  • uv run ruff check authentik/sources/ldap/sync/vendor/freeipa.py authentik/sources/ldap/tests/test_sync.py

Flatten FreeIPA krbLastPwdChange before timezone normalization and add a regression test covering list-valued attributes.
@Oluwatobi-Mustapha
Oluwatobi-Mustapha requested a review from a team as a code owner February 26, 2026 09:34
@netlify

netlify Bot commented Feb 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 6984c40
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69a9a40f0ccbf10008e067d5
😎 Deploy Preview https://deploy-preview-20600--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 Feb 26, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 2f194d2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69a013bffaf77e000863e8b4
😎 Deploy Preview https://deploy-preview-20600--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.

@netlify

netlify Bot commented Feb 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6984c40
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69a9a40fb257f400083b4f78
😎 Deploy Preview https://deploy-preview-20600--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.

@rissson rissson changed the title fix(ldap/freeipa): handle list-valued krbLastPwdChange sources/ldap/freeipa: handle list-valued krbLastPwdChange Aug 27, 2026
@rissson rissson added area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 and removed backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Aug 27, 2026
@rissson rissson moved this from Todo to Needs review in authentik Core Aug 27, 2026
@codecov

codecov Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.64%. Comparing base (8890ee2) to head (d66bb05).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20600      +/-   ##
==========================================
- Coverage   91.67%   91.64%   -0.03%     
==========================================
  Files        1151     1151              
  Lines       73416    73428      +12     
  Branches     4054     4054              
==========================================
- Hits        67301    67294       -7     
- Misses       6073     6092      +19     
  Partials       42       42              
Flag Coverage Δ
conformance 34.41% <0.00%> (-0.01%) ⬇️
e2e 39.06% <0.00%> (-0.01%) ⬇️
integration 30.55% <0.00%> (-0.46%) ⬇️
rust 42.92% <ø> (ø)
unit 93.23% <100.00%> (+0.01%) ⬆️
unit-migrate 93.25% <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-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Aug 28, 2026
@rissson
rissson merged commit a4e2050 into goauthentik:main Aug 28, 2026
137 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 28, 2026
@rissson rissson added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 28, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25561

rissson added a commit that referenced this pull request Aug 28, 2026
…#20600 to version-2026.8) (#25561)

Co-authored-by: Oluwatobi Mustapha <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@Oluwatobi-Mustapha
Oluwatobi-Mustapha deleted the fix/freeipa-krblastpwdchange-list-20145 branch August 28, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

FreeIPA LDAP user sync fails: 'list' object has no attribute 'replace' in check_pwd_last_set

3 participants