[
https://issues.apache.org/jira/browse/KNOX-3487?focusedWorklogId=1048609&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1048609
]
ASF GitHub Bot logged work on KNOX-3487:
----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Oct/26 22:59
Start Date: 20/Oct/26 22:59
Worklog Time Spent: 10m
Work Description: handavid commented on code in PR #1454:
URL: https://github.com/apache/knox/pull/1454#discussion_r4331224204
##########
knox-site/docs/service_ldap_server.md:
##########
@@ -232,12 +276,165 @@ knoxcli.sh create-alias my_backend_bind_password --value
<password>
If the alias may be created shortly after the configuration is loaded (for
example when a Kubernetes Secret and the configuration referencing it are
created together), set `gateway.ldap.backend.password.alias.retry.attempts` to
have Knox look up a missing alias again every
`gateway.ldap.backend.password.alias.retry.interval.ms` milliseconds before
giving up ([KNOX-3513](https://issues.apache.org/jira/browse/KNOX-3513)). Each
retry is logged at WARN; the ERROR is only logged once the retries are
exhausted. All missing aliases are retried together, so the LDAP service waits
at most attempts x interval while starting or reloading. The Knox CLI
(`knoxcli.sh`) never retries, so commands such as `create-alias` are not held
up by the missing alias.
+### Role Strategy
+
+The role strategy, selected with `gateway.ldap.roles.lookup.strategy`, is
where the [Roles Lookup Interceptor](#roles-lookup-interceptor-roleslookup)
gets its role data. The same strategy answers three questions:
+
+| Question | Used for |
+| :-
Issue Time Tracking
-------------------
Worklog Id: (was: 1048609)
Time Spent: 1h 50m (was: 1h 40m)
> LDAP Proxy find all members of a role
> -------------------------------------
>
> Key: KNOX-3487
> URL: https://issues.apache.org/jira/browse/KNOX-3487
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 3.1.0
> Reporter: David Han
> Assignee: David Han
> Priority: Major
> Fix For: 3.1.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> When role lookup is enabled on the LDAP Proxy, the LDAP Proxy should be able
> to return all users that are assigned a role. E.g.,
> {code}
> ldapsearch -b 'ou=users,DC=proxy,DC=com' -s sub
> '(memberOf=cn=rolename,ou=groups,dc=proxy,dc=com)' '*'
> {code}
> This would require calling the roles lookup service to get the mapped users
> and groups for the given role. Then modifying the search filter to replace
> the rolename with the users and groups.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)