Skip to content

Conversation

@come-nc
Copy link
Contributor

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

Backport #29523

  • Migration had to be adapted, should be tested against 21 to make sure it works.

come-nc and others added 13 commits December 14, 2021 10:57
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 14, 2021
@come-nc come-nc requested review from a team, ArtificialOwl, nickvergessen and skjnldsv and removed request for a team December 14, 2021 10:06
@come-nc come-nc changed the title Backport/29523/stable21 [stable21] Support LDAP dns longer than 255 characters Dec 14, 2021
@come-nc come-nc added the 3. to review Waiting for reviews label Dec 14, 2021
@come-nc
Copy link
Contributor Author

come-nc commented Dec 14, 2021

Tested migration on 21, works fine.

@come-nc come-nc requested a review from CarlSchwan December 14, 2021 15:46
@nickvergessen nickvergessen removed their request for review December 15, 2021 08:44
@come-nc come-nc added this to the Nextcloud 21.0.8 milestone Dec 16, 2021
@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 16, 2021
@come-nc come-nc merged commit c5a8610 into stable21 Dec 16, 2021
@come-nc come-nc deleted the backport/29523/stable21 branch December 16, 2021 08:06
This was referenced Jan 7, 2022
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