Wasim's Site

Liferay OSGi Config Generator

Generate Liferay OSGi .config files for osgi/configs. Pick a component for a typed property form, or use custom mode for any PID. Correct Felix format.

1. Choose a component

2. Configure properties

LDAP server URL, e.g. ldap://hostname:389.

String

Base distinguished name where user nodes are located.

String

Administrator bind DN used to connect to the directory.

String

Password for the bind DN (principal).

String

Add another property

3. Generated com.liferay.portal.security.ldap.configuration.LDAPServerConfiguration.config

Drop this file into [Liferay Home]/osgi/configs/.

Prefer the plain .cfg format? (com.liferay.portal.security.ldap.configuration.LDAPServerConfiguration.cfg)

The .config format is preferred — it carries types and supports multi-valued properties. Use .cfg only for simple scalar values.

Liferay LDAP Server OSGi Configuration

Connection settings for an external LDAP/Active Directory server. This is a factory configuration — one file per server.

PID: com.liferay.portal.security.ldap.configuration.LDAPServerConfigurationfactory configuration

Properties

PropertyTypeDefaultDescription
baseProviderURLStringldap://localhost:10389LDAP server URL, e.g. ldap://hostname:389.
baseDNStringdc=example,dc=comBase distinguished name where user nodes are located.
principalStringuid=admin,ou=systemAdministrator bind DN used to connect to the directory.
credentialsStringPassword for the bind DN (principal).

These are the common, verified properties. Add any others for this PID with the custom-property row in the form above, then drop the file into [Liferay Home]/osgi/configs.