setting up LDAP

Pawel Rozek, modified 5 Years ago. New Member Posts: 4 Join Date: 12/31/19 Recent Posts
Hi community,I'm trying to automate LDAP setup, so instead of the user navigating to Control Panel → Configuration → Instance Settings → Security → LDAP  
I would like to setup some properties or update some file that would store the LDAP settings. Is this even possible with Liferay?Thank you
thumbnail
Jack Bakker, modified 5 Years ago. Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
The documentation is a good place to start. Here is LDAP documentation for v7.2 https://portal.liferay.dev/docs/7-2/deploy/-/knowledge_base/d/ldap
Pawel Rozek, modified 5 Years ago. New Member Posts: 4 Join Date: 12/31/19 Recent Posts
Thank you for your reply. I read this article inside and out, but it seems that some settings are no longer available in liferay 7.In liferay 6 we could add the following settings to portal-ext.properties but it seems that's no longer available in Liferay 7 it seems to have disappeared from :

ldap.auth.enabled=
ldap.auth.required=
ldap.auth.method=
ldap.import.enabled=
ldap.import.method=
ldap.import.on.startup=
ldap.import.interval=
ldap.export.enabled=
ldap.export.group.enabled=
ldap.auth.password.encryption.algorithm=
ldap.import.user.password.enabled=
ldap.import.user.password.autogenerated=ldap.base.provider.url.0=
ldap.security.principal.0=
ldap.security.credentials.0=ldap.export.enabled.0=false
ldap.export.group.enabled=false
ldap.export.group.enabled.0=false
ldap.base.dn.0=
ldap.auth.search.filter.0=
ldap.user.mappings.0=
ldap.user.default.object.classes.0=
ldap.user.custom.mappings.0=
ldap.contact.mappings.0=
ldap.contact.custom.mappings.0=
ldap.import.user.search.filter.0=
Reference Liferay 6.2: https://docs.liferay.com/portal/6.2/propertiesdoc/portal.properties.html#LDAPReference Liferay 7.2: https://docs.liferay.com/portal/7.2-latest/propertiesdoc/portal.properties.html#LDAP
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,For Automation you can do it by creating a configuration file and placing osgi->config folder , you can refer below https://portal.liferay.dev/docs/7-1/user/-/knowledge_base/u/creating-configuration-files
Pawel Rozek, modified 5 Years ago. New Member Posts: 4 Join Date: 12/31/19 Recent Posts
I think this is the best solution. Thank you for your reply Mohammed. This worked for me emoticon