Hi,
is it possible to configure the LdapContextSource of the LdapTemplate for a JNDI lookup? That is, I have the following specified in my context:
The $ properties are stored in a properties file. I want to be able to just specify the JNDI name and let WebSphere manage the underlying connection parameters above, like jdbc data sources. Can the template be wrapped in a JndiObjectFactoryBean?Code:<bean id="ldapTemplate" class="org.springframework.ldap.LdapTemplate"> <constructor-arg> <bean class="org.springframework.ldap.support.LdapContextSource"> <property name="url" value="${ldap.url}" /> <property name="base" value="${ldap.base}" /> <property name="userName" value="${ldap.username}" /> <property name="password" value="${ldap.password}" /> <property name="baseEnvironmentProperties"> <map> <entry key="java.naming.referral" value="follow" /> </map> </property> </bean> </constructor-arg> </bean>
Thanks
Alan


Reply With Quote