-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.13.4
-
2
-
Severity 3 - Minor
-
0
-
Issue Summary
In specific conditions, the Confluence Audit Log can be filled with "User details updated" entries, despite no user details actually changing.
JIRA needs to be connected to LDAP via a Delegated Authentication directory with "Update User attributes on Login" enabled. Confluence then pulls the users from JIRA via an incremental sync (with JIRA acting as a user server).
After a user logs in to JIRA, and Confluence subsequently performs an incremental sync of the JIRA user directory, Confluence will create an Audit Log entry for each of those users who have authenticated into JIRA. In a larger environment, can quickly fill up the Audit Log UI such that it is no longer useful for an administrator.
Environment
Tested in:
- Confluence 6.13.4
- JIRA 8.3.0
- LDAP server: Apache Directory Server 1.5
Steps to Reproduce
Prep work:
- In JIRA, create a Delegated Authentication directory to LDAP with the "Update User attributes on Login" option checked (which itself requires "Copy User on Login" to be checked as well)
- Also configure the directory auto-add users to a JIRA permission group, such as jira-core-users, so that they can properly log into JIRA
- In JIRA, go to User Server and add an application, so that Confluence can connect to JIRA for user management
- In Confluence, create a JIRA Server user directory and connect to JIRA. Under "Advanced", make sure Incremental Sync is enabled (this is the default behavior)
- Log into JIRA with an LDAP user
- In Confluence, sync the JIRA directory to pull in the user
Reproducing the problem:
- In JIRA: log out with the LDAP user, and log back in
- In Confluence: using an admin user, trigger an incremental sync of the JIRA user directory
- Go to Confluence Admin > Audit Log and observe the results
Expected Results
Nothing is logged in the Confluence Audit Log relating to the user
Actual Results
Every JIRA authentication followed by an incremental sync to Confluence results in a "User details updated" Audit Log entry for said user. When the admin clicks "Show more", the entry is blank as no user details are actually updated.
Workaround
Only way to avoid this is to either disable incremental syncing in Confluence (since this problem does not occur with full syncs), or disable "Update User attributes on Login" in the LDAP directory JIRA-side. However, changing these options will have functional impacts in JIRA and Confluence that an admin should be aware of:
- Disabling incremental sync can cause Confluence to do more a lot work than needed when pulling user management content from JIRA
- Disabling "Update User attributes on Login" means that when users authenticate, JIRA will no longer update the users' records in its database with whatever is upstream in LDAP