Skip to content

Feature: Add support to search within multiple organisational units in ldap#535

Open
nicoklaus wants to merge 2 commits into
aboutcode-org:mainfrom
nicoklaus:main
Open

Feature: Add support to search within multiple organisational units in ldap#535
nicoklaus wants to merge 2 commits into
aboutcode-org:mainfrom
nicoklaus:main

Conversation

@nicoklaus
Copy link
Copy Markdown

Issues

Changes

This change adds support for searching users across multiple LDAP locations instead of only a single base DN. A new AUTH_LDAP_USER_SEARCHES setting allows multiple LDAP search definitions to be provided as a JSON list. The code validates the configuration, creates multiple LDAPSearch objects, and combines them using LDAPSearchUnion. If the new setting is not configured, the existing single-search behavior remains unchanged for backward compatibility. This is needed for environments where users are stored in different OUs or LDAP directory structures.

Checklist

  • I have read the contributing guidelines
  • I have linked an existing issue above
  • I have added unit tests covering the new code
  • I have reviewed and understood every line of this PR

nicoklaus added 2 commits May 13, 2026 14:30
Signed-off-by: Nicolas <32845761+nicoklaus@users.noreply.github.com>
Signed-off-by: Nicolas <32845761+nicoklaus@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement request: Add support to search within multiple organisational units in ldap

1 participant