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

Change the creation of a user in LDAP to upon login #4576

Open
matthias-ronge opened this issue Aug 12, 2021 · 0 comments
Open

Change the creation of a user in LDAP to upon login #4576

matthias-ronge opened this issue Aug 12, 2021 · 0 comments

Comments

@matthias-ronge
Copy link
Collaborator

matthias-ronge commented Aug 12, 2021

Part of #456.

The reason we have reversibly encrypted passwords in the database is that we want to be able to later create an LDAP entry for this user, which requires the password in plain text.

Goal: This change should pick up the password when logging in. Under the condition that

  • the user has a password in the database,
  • the user has an LDAP group,
  • the LDAP group has an LDAP server,
  • the LDAP server is writeable,
  • the entered password is valid against the database password (i.e., not mistyped)

we use the entered password to create the user in the LDAP. If this was successful, a password (obfuscated or hash) is set to null in the database.

Rationale: This work is a prerequisite for replacing the reversibly encrypted passwords in the database with irreversible hashes, as the hash cannot be used to create a user in LDAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants