How to stop the user directory synchronization forcefully?

sudarshana ramesh jayawardana amadoru
Contributor
February 23, 2024

* My confluence is tied to AD and my full synchronization runs in an infinite loop.

* I've disabled the user directory and restarted the node, but it is still running the synchronization.

 

2 answers

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2024

That's a great try - It's a learning for me as well - Thanks for sharing !!

sudarshana ramesh jayawardana amadoru
Contributor
February 26, 2024

* Also, you can do it from the database end by disabling the "Incremental Synchronization". 

* This involves updating the "cwd_directory_attribute" table to set "crowd.sync.incremental.enabled" to false for the directory you wish to disable incremental syncs.
Also, ensure to back up your database before making these changes.

Here's the SQL command for that:

update cwd_directory_attribute 
set attribute_value = 'false'
where attribute_name = 'crowd.sync.incremental.enabled'
and directory_id = (select id
from cwd_directory
where directory_name = 'YOUR_DIRECTORY_NAME');

 * Once you update the database, restart Confluence and trigger another synchronization through Confluence Admin -> General configuration -> User directories -> Your directory -> Synchronize.

Source: How to disable incremental synchronization for an external directory through the database 

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2024

Hi @sudarshana ramesh jayawardana amadoru - Have you disabled it at the LDAP/AD server level as well ?

sudarshana ramesh jayawardana amadoru
Contributor
February 24, 2024

Hi @Humashankar VJ

unfortunately, I don't have the control of AD side. So the only way to stop from Confluence end. 

Somehow I figured out a way to stop the process from the UI level by modifying the 'Schema Settings' in the Confluence Admin > User Directories section. Enter dummy values for 'Additional User DN' and 'Additional Group DN' to prevent Confluence from successfully syncing with the LDAP directory on startup. 

Source: https://jira.atlassian.com/browse/CONFSERVER-22326

Like Humashankar VJ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events