Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: setting up LDAP
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
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
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
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
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
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
I think this is the best solution. Thank you for your reply Mohammed. This worked for me