Resolve "Allow using Django-local accounts in addition to LDAP accounts" #2146

Merged
hansegucker merged 3 commits from 389-allow-using-django-local-accounts-in-addition-to-ldap-accounts into master 2021-04-30 16:15:26 +02:00
Owner

This approach moves the check for the SET_USABLE_PASSWORD setting to happen before failing authentication. If we do not handle passwords, we allow logging in with whatever is there.

The default behaviour remains to fail authentication for users that are not found in LDAP for the security reasons pointed out in #389.

Closes #388, #389

@debdolph We have to check what this does to the password changing feature. How does it behave if we disable usable Django passwords, and do we need to disable the feature then?

This approach moves the check for the `SET_USABLE_PASSWORD` setting to happen before failing authentication. If we do not handle passwords, we allow logging in with whatever is there. The default behaviour remains to fail authentication for users that are not found in LDAP for the security reasons pointed out in #389. Closes #388, #389 @debdolph We have to check what this does to the password changing feature. How does it behave if we disable usable Django passwords, and do we need to disable the feature then?
Author
Owner

assigned to @hansegucker and unassigned @nik

assigned to @hansegucker and unassigned @nik
Author
Owner

added 2 commits

  • be66faa1 - Only fail auth for non-LDAP users if password handling is enabled
  • 49c997eb - Allow overriding password handling in config

Compare with previous version

added 2 commits <ul><li>be66faa1 - Only fail auth for non-LDAP users if password handling is enabled</li><li>49c997eb - Allow overriding password handling in config</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/501/diffs?diff_id=4984&start_sha=77df2d66145d28a710fa2e8fe60c5aa194665259)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

changed the description

changed the description
Author
Owner

requested review from @debdolph

requested review from @debdolph
Author
Owner

changed the description

changed the description
Author
Owner

marked this merge request as draft

marked this merge request as **draft**
Author
Owner

@debdolph Please provide feedback asap.

@debdolph Please provide feedback asap.
Owner

marked this merge request as ready

marked this merge request as **ready**
Owner

added 192 commits

  • 49c997eb...7d022176 - 190 commits from branch master
  • 66d244f0 - Only fail auth for non-LDAP users if password handling is enabled
  • 16eaf34f - Allow overriding password handling in config

Compare with previous version

added 192 commits <ul><li>49c997eb...7d022176 - 190 commits from branch <code>master</code></li><li>66d244f0 - Only fail auth for non-LDAP users if password handling is enabled</li><li>16eaf34f - Allow overriding password handling in config</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/501/diffs?diff_id=6897&start_sha=49c997ebb506f3f8ba67aee62262cbd4f339a971)
Author
Owner

@debdolph Your feedback is still missing.

@debdolph Your feedback is still missing.
Owner

added 65 commits

  • 16eaf34f...1fd6195e - 64 commits from branch master
  • 6b514d1e - Merge branch 'master' into 389-allow-using-django-local-accounts-in-addition-to-ldap-accounts

Compare with previous version

added 65 commits <ul><li>16eaf34f...1fd6195e - 64 commits from branch <code>master</code></li><li>6b514d1e - Merge branch &#39;master&#39; into 389-allow-using-django-local-accounts-in-addition-to-ldap-accounts</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/501/diffs?diff_id=7439&start_sha=16eaf34f610bacd28ff0b21574f2ac7e69be8cec)
Owner

approved this merge request

approved this merge request
Owner

mentioned in commit 72bcb568be

mentioned in commit 72bcb568be6a1226c1498f8cfaaf01c122f4579f
tteichler approved these changes 2026-07-30 18:35:17 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!2146
No description provided.