Set password of LDAP-logged-in user in database #2120

Merged
hansegucker merged 1 commit from feature/keep_local_password_ldap into master 2021-02-08 08:34:18 +01:00
Owner

Having a local password is needed to make changing passwords easier. In
order to catch password changes in a universal way and forward them to
backends (like LDAP, in this case), getting the old password first is
necessary to authenticate as that user to LDAP.

We buy the small insecurity of having a hash of the password in the
Django database in order to not require it to have global admin permissions
on the LDAP directory.

Advances #354 and #353

Having a local password is needed to make changing passwords easier. In order to catch password changes in a universal way and forward them to backends (like LDAP, in this case), getting the old password first is necessary to authenticate as that user to LDAP. We buy the small insecurity of having a hash of the password in the Django database in order to not require it to have global admin permissions on the LDAP directory. Advances #354 and #353
Author
Owner

added 1 commit

  • 953b630b - Fix docstring

Compare with previous version

added 1 commit <ul><li>953b630b - Fix docstring</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/475/diffs?diff_id=4683&start_sha=2cc9dc91f27c37e69a4cfd63968fb77ae2827f73)
Owner

marked this merge request as draft

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

added 2 commits

  • 5dbc795a - Save user after setting password
  • bc34a808 - Fail early if LDAP fails authentication

Compare with previous version

added 2 commits <ul><li>5dbc795a - Save user after setting password</li><li>bc34a808 - Fail early if LDAP fails authentication</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/475/diffs?diff_id=4684&start_sha=953b630b6c4c6a13a75e1ad6b904d407decb24b8)
Author
Owner

added 1 commit

  • f92f9bbe - Set password of LDAP-logged-in user in database

Compare with previous version

added 1 commit <ul><li>f92f9bbe - Set password of LDAP-logged-in user in database</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/475/diffs?diff_id=4686&start_sha=bc34a8082cc1a8ffc0d9ec8a10f337f916e5a128)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Owner

approved this merge request

approved this merge request
Owner

Tested successfully.

Tested successfully.
Owner

mentioned in commit 7a12491dbf

mentioned in commit 7a12491dbf3b281d236db8f167214ff6f47b903c
tteichler approved these changes 2026-07-30 18:36:05 +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!2120
No description provided.