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

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

                Author: ASF GitHub Bot
            Created on: 01/Jun/26 15:48
            Start Date: 01/Jun/26 15:48
    Worklog Time Spent: 10m 
      Work Description: smolnar82 commented on PR #1236:
URL: https://github.com/apache/knox/pull/1236#issuecomment-4594208311

   Additional tests using `ldapsearch`:
   ```
   ~/test/knoxGateway $ ldapsearch -x -H ldap://localhost:33390 -b 
"dc=hadoop,dc=apache,dc=org" "(uid=admin)" cn mail memberOf
   # extended LDIF
   #
   # LDAPv3
   # base <dc=hadoop,dc=apache,dc=org> with scope subtree
   # filter: (uid=admin)
   # requesting: cn mail memberOf 
   #
   
   # admin, people, hadoop.apache.org
   dn: uid=admin,ou=people,dc=hadoop,dc=apache,dc=org
   mail: [email protected]
   cn: System Administrator
   memberOf: cn=admin,ou=groups,dc=hadoop,dc=apache,dc=org
   
   # search result
   search: 2
   result: 0 Success
   
   # numResponses: 2
   # numEntries: 1
   ```
   ```
   ~/test/knoxGateway $ ldapsearch -x -H ldap://localhost:33390 -b 
"dc=hadoop,dc=apache,dc=org" "(uid=guest)" cn mail memberOf
   # extended LDIF
   #
   # LDAPv3
   # base <dc=hadoop,dc=apache,dc=org> with scope subtree
   # filter: (uid=guest)
   # requesting: cn mail memberOf 
   #
   
   # guest, people, hadoop.apache.org
   dn: uid=guest,ou=people,dc=hadoop,dc=apache,dc=org
   mail: [email protected]
   cn: Guest
   
   # search result
   search: 2
   result: 0 Success
   
   # numResponses: 2
   # numEntries: 1
   ```
   ```
   ~/test/knoxGateway $ ldapsearch -x -H ldap://localhost:33390 -b 
"dc=hadoop,dc=apache,dc=org" "(uid=recursiveUser)" cn mail memberOf
   # extended LDIF
   #
   # LDAPv3
   # base <dc=hadoop,dc=apache,dc=org> with scope subtree
   # filter: (uid=recursiveUser)
   # requesting: cn mail memberOf 
   #
   
   # recursiveUser, people, hadoop.apache.org
   dn: uid=recursiveUser,ou=people,dc=hadoop,dc=apache,dc=org
   cn: Recursive
   memberOf: cn=level1,ou=groups,dc=hadoop,dc=apache,dc=org
   memberOf: cn=level2,ou=groups,dc=hadoop,dc=apache,dc=org
   memberOf: cn=level3,ou=groups,dc=hadoop,dc=apache,dc=org
   ```




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

    Worklog Id:     (was: 1023137)
    Time Spent: 4h 10m  (was: 4h)

> Support recursive group resolution in LDAP Proxy Service
> --------------------------------------------------------
>
>                 Key: KNOX-3328
>                 URL: https://issues.apache.org/jira/browse/KNOX-3328
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>    Affects Versions: 3.0.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> The current Knox LDAP proxy implementation only supports direct group 
> memberships for users. When a client queries for a user's {{memberOf}} 
> attribute, Knox only returns the groups where the user is an explicit member, 
> ignoring any transitive or nested group memberships.
> Additionally, group entries themselves are not enriched with the {{memberOf}} 
> attribute, making it difficult for clients to walk the hierarchy manually.
> This task implements:
> # Recursive group resolution for both search-based and {{memberOf}}-based 
> lookups.
> # Strict cycle detection to prevent infinite loops in misconfigured LDAP 
> environments.
> # Configurable depth limits to prevent performance degradation.
> # Enrichment of group-type entries with the {{memberOf}} attribute, allowing 
> clients to see parent group memberships.



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

Reply via email to