migrateuserstoDB.sh script for LDAP refresh
In our system we have Ldap configured to onboard users in Agile. Now we are intending to make the ldap refresh using migrateuserstoDB.sh script file present in Agile_home\agileDomain\bin> as we are planning to make a user creation and user management automation in agile which will trigger this migrateuserstoDB.sh script to perform the ldap refresh.
Now our question is:
1. Will this script perform similar way as we do ldap refresh from javaclient? Or it might create any discrepancy in the long run?
2. If we trigger this script multiple times in a day as per automation demand will that create any issue in application?
3. Is there any pre or post activities required to execute the migrateuserstoDB.sh script?
4. We have checked this script in our lower instances and there after execution it is asking to restart server, but if we use this script in automation and trigger it multiple time without restarting the servers , will that cause any issue?
Can someone please advise.
migrateusersToDB is meant for one-time execution. You would do this whenever you are configuring Agile to a new LDAP or modifying to another. You shouldn’t use this for incremental changes. Doing this will definitely require Agile app to restart. Many cases, unless you restart, you won’t see the new users in Agile even though it is there
“Refresh User List From Directory Server” task (Server Settings -> Task Configuration) is meant for this exact purpose. you can schedule this as frequently you want and it will take care of incremental runs without any issues
Hope this helps
I agree with Raj that the user refresh can happen automatically with LDAP. I also set up an event that runs once a day and looks for any new users created in Agile, makes them Active and also adds them to a User Group. I can send you that Groovy script if you wish. Email me at mathison at hotmail dot com.
Thanks for your inputs Raj, I can see “Refresh User List From Directory Server” is there in (Server Settings -> Task Configuration), and it is also enabled, but it seems it is not working as everyday we need to do manual syncing from user–>sync users from LDAP.. Below are the parameter set currently.
Name : Refresh User List From Directory Server
Interval : 1440
Delay Time: 0
Look Back Window: 30
Max event number: 1
Restart Upon Failure: 0
Load across server: 0
Can you please advise what could be the ideal parameters if we want to execute ldap refresh automatically at each 3 hour interval?