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

[stable29] fix(user_ldap): Avoid extra LDAP request when mapping a user for the first time #51255

Open
wants to merge 9 commits into
base: stable29
Choose a base branch
from

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 5, 2025

Backport of PR #50778

@backportbot backportbot bot requested review from artonge and come-nc March 5, 2025 06:31
@backportbot backportbot bot added 3. to review Waiting for reviews feature: ldap labels Mar 5, 2025
@backportbot backportbot bot added this to the Nextcloud 29.0.13 milestone Mar 5, 2025
@max-nextcloud max-nextcloud changed the title [stable29] [stable30] fix(user_ldap): Avoid extra LDAP request when mapping a user for the first time [stable29] fix(user_ldap): Avoid extra LDAP request when mapping a user for the first time Mar 5, 2025
@backportbot backportbot bot force-pushed the backport/50778/stable29 branch from 400fae4 to 7ea4c49 Compare March 5, 2025 14:03
@blizzz blizzz mentioned this pull request Mar 5, 2025
13 tasks
come-nc added 7 commits March 6, 2025 11:00
…first time

Avoids using several LDAP searches to get UUID, display name and
 internal name, now gets all attributes at the same time.
Also avoids extra request to build an unused user object in userExists.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…n mapping new user

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Avoid surprises by making sure these are lowercased apart from
 documented special case user displayname.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…anager

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…rties for LDAP classes

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the backport/50778/stable29 branch from c75f87a to 2128ad1 Compare March 6, 2025 10:02
come-nc and others added 2 commits March 6, 2025 12:04
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud enabled auto-merge March 6, 2025 14:32
@blizzz blizzz mentioned this pull request Mar 12, 2025
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants