[
https://issues.apache.org/jira/browse/KNOX-3618?focusedWorklogId=1057065&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1057065
]
ASF GitHub Bot logged work on KNOX-3618:
----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Nov/26 09:54
Start Date: 25/Nov/26 09:54
Worklog Time Spent: 10m
Work Description: github-actions[bot] commented on PR #1545:
URL: https://github.com/apache/knox/pull/1545#issuecomment-7158956792
## Test Results
5 files 5 suites 1m 32s ⏱️
248 tests 247 ✅ 1 💤 0 ❌
371 runs 370 ✅ 1 💤 0 ❌
Results for commit 18487e51.
[test-results]:data:application/gzip;base64,H4sIAEawBmsC/03MSw6DIBSF4a0Yxh3Iw3DpZhq8QkKq0iCMmu69V6Lo8P9Ocr7Mh9lt7NkNj45tJeQWU0k2h7hSGkFNS943oeCs11YQK+mL3uFDxBt4G2aCvoFLKaZDUln3T6n5Eeel1H2T67H27bD2/Q/jsoRMwTgo0G7g3o4ohZOGKw/GjRNYLaxBiYAGuGG/P3ifKKAEAQAA
Issue Time Tracking
-------------------
Worklog Id: (was: 1057065)
Time Spent: 0.5h (was: 20m)
> LDAP proxy floods gateway.log with ERR_13207_VALUE_ALREADY_EXISTS warnings
> for memberOf
> ---------------------------------------------------------------------------------------
>
> Key: KNOX-3618
> URL: https://issues.apache.org/jira/browse/KNOX-3618
> Project: Apache Knox
> Issue Type: Task
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 3.1.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When recursive group resolution is enabled, the LDAP proxy backend floods
> gateway.log with one WARN per direct group, per user entry, per lookup:
> {noformat}
> WARN entry.DefaultAttribute (DefaultAttribute.java:add(1099)) -
> ERR_13207_VALUE_ALREADY_EXISTS The value
> 'CN=group1,OU=Groups,DC=example,DC=com' already exists in the attribute
> (memberOf)
> {noformat}
> *Root cause:* {{LdapProxyBackend#addGroupMemberships}} adds every resolved
> group DN to the entry's {{memberOf}}. The resolved list includes the direct
> groups, which are already on the entry (from the remote {{memberOf}} when
> {{useMemberOf=true}}, or because AD returns {{memberOf}} for {{"*"}}
> otherwise). The Directory API drops the duplicate but logs a warning each
> time.
> Group membership results are correct; the issue is log noise only.
> *Fix:* skip group DNs that the entry already contains before calling
> {{entry.add()}}.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)