Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sources/ldap: Add enabled filter for ldap_password_validate signal #10823

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

aaw3
Copy link
Contributor

@aaw3 aaw3 commented Aug 8, 2024

Details

Disabled LDAP Sources are still queried causing issues when trying to change or validate passwords via Stages. The issues is a result of the line: sources = LDAPSource.objects.filter(sync_users_password=True)

The filter only checks if the sync_users_password checkbox is true, but should additionally check if the Source is enabled.

closes #10822


Checklist

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

If an API change has been made

  • The API schema has been updated (make gen-build)

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 website)

@aaw3 aaw3 requested a review from a team as a code owner August 8, 2024 09:53
Copy link

netlify bot commented Aug 8, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit f859fa0
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/66b4959369199f0008e1890b
😎 Deploy Preview https://deploy-preview-10823--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 site configuration.

Copy link

netlify bot commented Aug 8, 2024

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit f859fa0
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/66b495938a6e540008dc10da

@BeryJu BeryJu changed the title Add enabled filter for ldap_password_validate signal sources/ldap: Add enabled filter for ldap_password_validate signal Aug 8, 2024
Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.64%. Comparing base (82017fa) to head (f859fa0).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10823      +/-   ##
==========================================
+ Coverage   92.62%   92.64%   +0.01%     
==========================================
  Files         734      735       +1     
  Lines       36039    36096      +57     
==========================================
+ Hits        33380    33440      +60     
+ Misses       2659     2656       -3     
Flag Coverage Δ
e2e 49.46% <100.00%> (+0.03%) ⬆️
integration 25.20% <0.00%> (+0.01%) ⬆️
unit 90.18% <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 Sentry.
📢 Have feedback on the report? Share it here.

@rissson rissson merged commit fd0127a into goauthentik:main Aug 8, 2024
67 checks passed
@BeryJu
Copy link
Member

BeryJu commented Aug 8, 2024

/cherry-pick version-2024.6

BeryJu pushed a commit that referenced this pull request Aug 8, 2024
…herry-pick #10823) (#10825)

sources/ldap: Add enabled filter for ldap_password_validate signal (#10823)

Co-authored-by: Allen <63997543+aaw3@users.noreply.github.com>
kensternberg-authentik added a commit that referenced this pull request Aug 8, 2024
* main: (25 commits)
  website/docs: add link from Install docs to Enterprise docs (#10827)
  website/docs: new upgrade page (#10742)
  stages/authenticator: actually update last_used (#10813)
  sources/ldap: Add enabled filter for ldap_password_validate signal (#10823)
  web: bump API Client version (#10821)
  sources/plex: add property mappings (#10772)
  core: bump goauthentik.io/api/v3 from 3.2024063.2 to 3.2024063.5 (#10817)
  web: bump the wdio group across 2 directories with 4 updates (#10818)
  web: bump chromedriver from 127.0.1 to 127.0.2 in /tests/wdio (#10819)
  web: update to ESLint 9 (#10812)
  website/docs: add source property mappings, rework provider property mappings (#10652)
  web/admin: refactor property mappings forms (#10810)
  web: bump API Client version (#10811)
  sources/saml: Basic support for EncryptedAssertion element. (#10099)
  web: bump API Client version (#10809)
  sources: add property mappings for all oauth and saml sources (#8771)
  web: bump API Client version (#10808)
  stages/authenticator: add created, last_updated and last_used metadata (#10636)
  providers/proxy: avoid erroring on logout with session_id is None (#9119)
  core: bump google-api-python-client from 2.139.0 to 2.140.0 (#10802)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants