Skip to content

KNOX-3425: LDAP Proxy disallows anonymous binds to remote backends - #1358

Merged
hanicz merged 1 commit into
apache:masterfrom
handavid:knox-3425-anonymousbind
Aug 27, 2026
Merged

KNOX-3425: LDAP Proxy disallows anonymous binds to remote backends#1358
hanicz merged 1 commit into
apache:masterfrom
handavid:knox-3425-anonymousbind

Conversation

@handavid

@handavid handavid commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

KNOX-3425 - LDAP Proxy disallows anonymous binds to remote backends

What changes were proposed in this pull request?

The LdapProxyBackend.authenticate method will now return false if either the given DN or password is empty to prevent unauthorized and anonymous binds.

The UserSearchInterceptor is also updated to not call the backend if the DN or password is empty.

How was this patch tested?

Unit tests added.
Manual tests performed using ldapsearch to attempt anonymous bind that previously succeeded

ldapsearch -v -x -H ldap://localhost:3890 -b 'ou=people,DC=proxy,DC=com' '(uid=guest*)' '*'

Integration Tests

integration tests were run locally

UI changes

no UI changes

The LdapProxyBackend.authenticate method will now return false if either
the given DN or password is empty to prevent unauthorized and anonymous binds.

The UserSearchInterceptor is also updated to not call the backend if the DN
or password is empty.
@handavid

Copy link
Copy Markdown
Contributor Author

@smolnar82 @hanicz

@github-actions

Copy link
Copy Markdown

Test Results

 3 files   3 suites   6s ⏱️
52 tests 52 ✅ 0 💤 0 ❌
63 runs  63 ✅ 0 💤 0 ❌

Results for commit f3a7e9e.

@hanicz
hanicz merged commit 1cfef0d into apache:master Aug 27, 2026
3 checks passed
hanicz pushed a commit that referenced this pull request Aug 27, 2026
…1358)

The LdapProxyBackend.authenticate method will now return false if either
the given DN or password is empty to prevent unauthorized and anonymous binds.

The UserSearchInterceptor is also updated to not call the backend if the DN
or password is empty.

(cherry picked from commit 1cfef0d)
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.

2 participants