Sandor Molnar created KNOX-3618:
-----------------------------------
Summary: 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
Fix For: 3.1.0
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)