[ 
https://issues.apache.org/jira/browse/KNOX-3386?focusedWorklogId=1033145&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1033145
 ]

ASF GitHub Bot logged work on KNOX-3386:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Jul/26 05:33
            Start Date: 31/Jul/26 05:33
    Worklog Time Spent: 10m 
      Work Description: smolnar82 commented on code in PR #1331:
URL: https://github.com/apache/knox/pull/1331#discussion_r3688270263


##########
gateway-server/src/main/java/org/apache/knox/gateway/services/ldap/LdapMessages.java:
##########
@@ -73,6 +73,10 @@ public interface LdapMessages {
             text = "Creating LDAP interceptor: {0} (via {1})")
     void ldapInterceptorCreating(String interceptorName, String source);
 
+    @Message(level = MessageLevel.INFO,
+            text = "Configuring LDAP interceptor {0}: {1} = {2})")
+    void ldapInterceptorConfiguring(String interceptorNamee, String 
configName, String configValue);

Review Comment:
   nit: typo in the parameter name `interceptorNamee`



##########
gateway-server/src/main/java/org/apache/knox/gateway/services/ldap/LdapMessages.java:
##########
@@ -73,6 +73,10 @@ public interface LdapMessages {
             text = "Creating LDAP interceptor: {0} (via {1})")
     void ldapInterceptorCreating(String interceptorName, String source);
 
+    @Message(level = MessageLevel.INFO,
+            text = "Configuring LDAP interceptor {0}: {1} = {2})")

Review Comment:
   See the additional `)` at the ned of the message. Please remove it.



##########
knox-site/docs/service_ldap_server.md:
##########
@@ -198,6 +200,10 @@ The proxy backend delegates lookups to a remote LDAP or 
Active Directory server.
 | `gateway.ldap.interceptor.<name>.groupMemberAttribute` | `memberUid` | 
Attribute used for group membership (e.g., `member` for AD). |
 | `gateway.ldap.interceptor.<name>.useMemberOf` | `false` | If `true`, use the 
`memberOf` attribute for efficient group lookups. |
 | `gateway.ldap.interceptor.<name>.proxy.poolMaxActive` | `8` | Maximum number 
of active connections in the pool. |
+| `gateway.ldap.interceptor.<name>.pageSize` | `1000` | Page size for search 
requests. |
+| `gateway.ldap.interceptor.<name>.maxResultSetSize` | `0` | Maximum number of 
results to return from a search, regardless of paging. 0 means unlimited. |
+
+NOTE: If this value is undefined and the interceptor was created by the 
KnoxLDAPServerManager, the KnoxLDAPServerManager will set the 
`gateway.ldap.interceptor.<name>.maxResultSetSize` value to be 1 greater than 
the proxy's `gateway.ldap.roles.max.time.limit` configuration. This will ensure 
that the proxy returns a "Size limit exceeded" result if the backend has more 
results than the proxy's limit.

Review Comment:
   I think you meant `be 1 greater than the proxy's gateway.ldap.max.size.limit 
configuration`.
   See `time` vs `size` and we don't need the `roles` prefix either (see my 
comment above).



##########
knox-site/docs/service_ldap_server.md:
##########
@@ -44,6 +44,8 @@ The service is configured in `gateway-site.xml`.
 | `gateway.ldap.roles.lookup.strategy` | N/A | The LDAP roles lookup strategy 
(`file` or `rest`). |
 | `gateway.ldap.roles.lookup.rest.api.endpoint` | N/A | The LDAP roles lookup 
REST API endpoint. |
 | `gateway.ldap.roles.lookup.file.path` | N/A | The LDAP roles lookup file 
path. |
+| `gateway.ldap.roles.max.size.limit` | 1000 | The maximum size limit of the 
result set returned by search requests. |
+| `gateway.ldap.roles.max.time.limit` | 60000 | The maximum time limit for 
search requests in milliseconds. |

Review Comment:
    Should be `gateway.ldap.max.size.limit` / `gateway.ldap.max.time.limit`.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 1033145)
    Time Spent: 1h  (was: 50m)

> Knox LDAP Proxy supports paging to backends
> -------------------------------------------
>
>                 Key: KNOX-3386
>                 URL: https://issues.apache.org/jira/browse/KNOX-3386
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>            Reporter: David Han
>            Assignee: David Han
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The LDAP proxy should page results from the remote backends when retrieving 
> large result sets.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to