Issue
- I want to manually trigger LDAP imports by triggering the UserImportConfigurationModelListener scheduled job.
- However, when I trigger this job, I see the following line in the LDAP DEBUG logs:
DEBUG [liferay/scheduled_user_ldap_import-2][UserImportConfigurationModelListener:165] Skipping LDAP user import because LDAP import interval has not been reached
Environment
- DXP 7.4
Resolution
- To work around the import interval limit, set the System Settings Import Interval to the desired auto-import time, and the Instance Settings Import Interval to 1.
Additional Information
- The UserImportConfigurationModelListener scheduled jog runs a series of checks to see if it can be triggered, one of which is to check whether the import interval set in the Instance Settings has been reached.
- The System Settings import interval controls how often the scheduled job attempts to run. So if we set this to 10 minutes, every instance in the bundle will attempt to import users every 10 minutes.
- Three checks may prevent importation; 1) import being disabled, 2) the Instance import interval being under 1 minute, and 3) the Instance import interval not having been reached.
- There are three possibilities when setting the Instance import interval and the System import interval.
- If the Instance import interval is the same as the System import interval, then the imports are fired off every x minutes and all checks pass.
- If the Instance import interval is set higher than the System import interval, an import is attempted whether the System interval has been reached, but only allowed as often as dictated by the Instance interval.
- If the Instance import interval is set lower than the System import interval, then an import is attempted as often as is set in the System settings, but it can be triggered manually in the instance as soon as the Instance import interval has passed.
- A feature request was opened at LPS-189362 to request that LDAP imports can be manually triggered before the interval is reached without the use of this workaround.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión