Skip to content

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

Closed
handavid wants to merge 1 commit into
apache:v3.0.0from
handavid:knox-3425-anonymousbind-v3.0.0
Closed

KNOX-3425: LDAP Proxy disallows anonymous binds to remote backends#1359
handavid wants to merge 1 commit into
apache:v3.0.0from
handavid:knox-3425-anonymousbind-v3.0.0

Conversation

@handavid

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.

Cherry-picks #1358 to v3.0.0

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

@hanicz hanicz closed this Aug 27, 2026
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