search cancel

Job: LDAP - Synchronize New and Changed Users Fails

book

Article ID: 241495

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

The job(LDAP - Synchronize New and Changed Users) has been failing with error in the BG log:

ERROR 2022-05-10 05:10:06,905 [Dispatch LDAP - Synchronize New and Changed Users : [email protected] (tenant=clarity)] directory.LDAPAddModifySyncAgent (clarity:admin:session:LDAP - Synchronize New and Changed Users) 
com.niku.security.directory.DirectoryServiceException: java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 23
 at com.niku.security.directory.LDAPDirectoryService.importUsers(LDAPDirectoryService.java:526)
 at com.niku.security.directory.LDAPAddModifySyncAgent.scheduledEventFired(LDAPAddModifySyncAgent.java:48)
 at com.niku.njs.Dispatcher$BGTask.run(Dispatcher.java:746)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 at java.base/java.lang.Thread.run(Thread.java:834)

Environment

Release : All

Resolution

Check if the job(LDAP - Synchronize Obsolete Users) is currently scheduled and running without error.

Check configuration in the CSA/NSA > Security page.
1. Check the batch size and increase to 2000, if needed. Save.
2. Restart the APP Service.
3. Run the job(LDAP - Synchronize Obsolete Users). Check if failure.
4. Run the job(LDAP - Synchronize New and Changed Users). Check if failure.