Skip to content

Conversation

@come-nc
Copy link
Contributor

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

Backport #29523

@come-nc come-nc self-assigned this Dec 14, 2021
@come-nc come-nc changed the base branch from master to stable22 December 14, 2021 09:56
@come-nc come-nc requested a review from CarlSchwan December 14, 2021 09:56
@ChristophWurst ChristophWurst changed the title Backport/29523/stable22 [stable22] Support LDAP dns longer than 255 characters Dec 14, 2021
@ChristophWurst ChristophWurst added this to the Nextcloud 22.2.4 milestone Dec 14, 2021
Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need fixing of the DCO

come-nc and others added 12 commits December 16, 2021 09:05
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 force-pushed the backport/29523/stable22 branch from 0a43f5b to eeefca2 Compare December 16, 2021 08:06
@come-nc come-nc requested review from a team, PVince81 and icewind1991 and removed request for a team December 16, 2021 11:42
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81
Copy link
Member

although the failing test seems unrelated as this PR didn't touch those classes, it is still related to user backend / user management

just to be on the safe side, I've restarted the tests now

@PVince81 PVince81 added the 4. to release Ready to be released and/or waiting for tests to finish label Dec 16, 2021
@come-nc come-nc merged commit 7f63268 into stable22 Dec 16, 2021
@come-nc come-nc deleted the backport/29523/stable22 branch December 16, 2021 15:35
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
9 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.

6 participants