Skip to content

KNOX-3406: LDAP Proxy backend improve error handling - #1355

Open
handavid wants to merge 1 commit into
apache:masterfrom
handavid:knox-3406-cursor
Open

KNOX-3406: LDAP Proxy backend improve error handling#1355
handavid wants to merge 1 commit into
apache:masterfrom
handavid:knox-3406-cursor

Conversation

@handavid

Copy link
Copy Markdown
Contributor

KNOX-3406 - Fix LDAP Proxy error handling

What changes were proposed in this pull request?

The LdapProxyBackend.getUser code was modified to ensure that the search cursor is closed before attempting to augment the entry with group memberships to avoid having simultaneously open cursors.

The error handling in performPagedSearch was improved such that unsuccessful paging calls will result in exceptions for the caller to handle.

How was this patch tested?

Workflow was run repeatedly to try reproducing the intermittent failures in the JIRA. Through this, I discovered the paging issue that I've fixed in this PR. Unit tests were added to cover the paged search changes.

Integration Tests

no tests added

UI changes

no UI changes

The LdapProxyBackend.getUser code was modified to ensure that the search
cursor is closed before attempting to augment the entry with group memberships
to avoid having simultaneously open cursors.

The error handling in performPagedSearch was improved such that unsuccessful
paging calls will result in exceptions for the caller to handle.
@handavid

Copy link
Copy Markdown
Contributor Author

@smolnar82 @hanicz

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.

1 participant