Issue
- I would like my LDAP import to run at specific times and dates.
- I can set LDAP import intervals by number of minutes through either System Settings or Instance Settings:
- Control Panel > Configuration > System Settings > search for "LDAP Import"
- Control Panel > Configuration > Instance Settings > scroll down to Authentication > LDAP > Import Interval
- However, the import interval restarts from zero whenever I reset my server.
- This means that if I set the import to run weekly (every 10080 minutes) on Sunday, then reset my server on Wednesday, the import will run the next Wednesday (10080 minutes after the server reset), rather than on Sunday (10080 after the last import).
Environment
- DXP 7.0
Resolution
- LDAP interval is set based on the trigger which lives in memory, so the trigger is reset every time the server resets.
- There is currently no way to set LDAP imports to run at a specific time and date unrelated to the trigger.
Additional Information
- It is possible to set the LDAP import to run on startup through System Settings, Instance Settings, or by including the following property in portal-ext.properties:
ldap.import.on.startup=true
. - Unless LPS-109015 is applied (available in 7.0 de-90), an LDAP import will always run on startup if LDAP is enabled.
- LDAP Frequently Asked Questions
- Is It Possible to Schedule LDAP imports for a specific time and day?
- Possible Mismatch Between the Real LDAP Import Time and Import Interval Set on Instance Settings after LPS-98420