Skip to content

Conversation

@come-nc
Copy link
Contributor

@come-nc come-nc commented Dec 13, 2021

Backport #29523

come-nc and others added 12 commits December 13, 2021 09:38
Adds an ldap_full_dn column to store the dn, and only store a sha256
 hash in the ldap_dn which is shorter and can be indexed without
 trouble.
Migration still needs to be implemented.

Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
We cannot set ldap_dn_hash column as notnull because it is empty for
 existing users before postSchemaChange is called

Signed-off-by: Côme Chilliet <[email protected]>
This is to ensure new installations do not need to go through migration
 history.

Signed-off-by: Côme Chilliet <[email protected]>
The documentation says it can return false, and even if that is highly
 unlikely for sha256, better safe than sorry.

Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc self-assigned this Dec 13, 2021
@come-nc come-nc requested review from a team, ArtificialOwl, CarlSchwan and nickvergessen and removed request for a team December 13, 2021 16:45
@come-nc come-nc requested a review from skjnldsv December 14, 2021 10:25
@come-nc come-nc merged commit 5282fce into stable23 Dec 14, 2021
@come-nc come-nc deleted the backport/29523/stable23 branch December 14, 2021 12:15
@come-nc come-nc added this to the Nextcloud 23.0.1 milestone Dec 14, 2021
@come-nc come-nc added the 4. to release Ready to be released and/or waiting for tests to finish label Dec 14, 2021
@come-nc come-nc changed the title Backport/29523/stable23 [stable23] Support LDAP dns longer than 255 characters Dec 14, 2021
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
6 tasks
This was referenced Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants