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

[stable23] Support LDAP dns longer than 255 characters #30238

Merged
merged 12 commits into from
Dec 14, 2021

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 <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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 <come.chilliet@nextcloud.com>
This is to ensure new installations do not need to go through migration
 history.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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 <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc self-assigned this Dec 13, 2021
@come-nc come-nc requested review from a team, nickvergessen, ArtificialOwl and CarlSchwan 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.

4 participants