Foren

force liferay to start user/group import

thumbnail
Sarah L Farley, geändert vor 12 Jahren.

force liferay to start user/group import

Junior Member Beiträge: 37 Beitrittsdatum: 06.05.09 Neueste Beiträge
Hi,

I am wondering if there is a away (other than stopping and restarting tomcat) to have liferay import users/groups?

My LDAP configurations are in the portal-ext.properties file.

Thanks!

Sarah
thumbnail
Jan Gregor, geändert vor 12 Jahren.

RE: force liferay to start user/group import

Regular Member Beiträge: 224 Beitrittsdatum: 20.10.10 Neueste Beiträge
Hi Sarah,

You probably means, how to start the LDAP import manually ? Well, no. You can specifiy, whether the import should start at the server start. Then you can set the interval, in which will be import be triggered. That means, X hours the import will be triggered. You can write your plugin, which will call the LDAP import API, so you will be able to start the import manually. Out of the box, there is no "LDAP start" button.

Regards,

Jan.
Pierre Morin, geändert vor 10 Jahren.

RE: force liferay to start user/group import

Junior Member Beiträge: 70 Beitrittsdatum: 17.05.11 Neueste Beiträge
You can do this by using a JavaScript in the Scripts tab in Server Administration :
Packages.com.liferay.portal.security.ldap.PortalLDAPImporterUtil.importFromLDAP();
Alberto de Francisco Martín, geändert vor 7 Jahren.

RE: force liferay to start user/group import

New Member Beiträge: 17 Beitrittsdatum: 01.02.10 Neueste Beiträge
Pierre Morin:
You can do this by using a JavaScript in the Scripts tab in Server Administration :
Packages.com.liferay.portal.security.ldap.PortalLDAPImporterUtil.importFromLDAP();


Great and functional solution !
Thanks Pierre