To set the connection parameters for the LDAP server, configure the ldapContextSource helper bean as follows:
| 1. | In sample-applicationContext-externalAuth-LDAP[-mt].xml, locate the ldapContextSource bean. |
| 2. | Specify the following information: |
| • | constructor-arg value – The URL of your LDAP server, including the base DN. |
| • | userDn property – The distinguished name (DN) of your LDAP administrator. |
| • | password property – The password of your LDAP administrator. |
| If your LDAP server is configured to allow anonymous user lookup, you do not need to specify the userDn and password properties. |
The following example shows the syntax of the bean’s constructor and properties:
<bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource"> <constructor-arg value="ldap://hostname:389/dc=example,dc=com" /> <property name="userDn"><value>cn=Administrator,dc=example,dc=com</value></property> <property name="password"><value>password</value></property></bean>[/code] |
Recommended Comments
There are no comments to display.