[
https://issues.apache.org/jira/browse/KNOX-3618?focusedWorklogId=1057212&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1057212
]
ASF GitHub Bot logged work on KNOX-3618:
----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Nov/26 07:40
Start Date: 26/Nov/26 07:40
Worklog Time Spent: 10m
Work Description: smolnar82 merged PR #1545:
URL: https://github.com/apache/knox/pull/1545
Issue Time Tracking
-------------------
Worklog Id: (was: 1057212)
Time Spent: 40m (was: 0.5h)
> 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: 40m
> 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)