Skip to content

KNOX-3375: Wire in gatewayservices for LDAPRolesLookupInterceptorFact…#1303

Merged
smolnar82 merged 1 commit into
apache:masterfrom
hanicz:KNOX-3375
Jul 13, 2026
Merged

KNOX-3375: Wire in gatewayservices for LDAPRolesLookupInterceptorFact…#1303
smolnar82 merged 1 commit into
apache:masterfrom
hanicz:KNOX-3375

Conversation

@hanicz

@hanicz hanicz commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

…ory so KnoxCLI is able to load it

KNOX-3375 - KnoxCLI fails if rolesLookupInterceptor is enabled

What changes were proposed in this pull request?

  • Threaded the active GatewayServices instance from LdapServiceFactory through KnoxLDAPServiceKnoxLDAPServerManagerInterceptorFactoryLDAPRolesLookupInterceptorFactory, so the factory no longer depends on the null-under-knoxcli static GatewayServer.getGatewayServices(). This lets knoxcli commands succeed when rolesLookup is configured, since CLIGatewayServices already registers LDAP_ROLES_LOOKUP_SERVICE.

How was this patch tested?

Enabled rolesLookupInterceptor and tested knoxcli, unit tests

Integration Tests

N/A

UI changes

N/A

@github-actions

Copy link
Copy Markdown

Test Results

36 tests   36 ✅  4s ⏱️
 3 suites   0 💤
 3 files     0 ❌

Results for commit c6a801e.

@pzampino pzampino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@smolnar82 smolnar82 merged commit 3f2ed2e into apache:master Jul 13, 2026
3 checks passed
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.

3 participants