iutest.conf.ldapTemplateTestContext.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ldaptemplate Show documentation
Show all versions of ldaptemplate Show documentation
Java framework to simplify LDAP operations, based on the pattern of Spring's JdbcTemplate. Relieves the users of the burden of looking up and closing contexts, looping through NamingEnumerations, encoding/decoding values and filters, and more.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <import resource="classpath:/conf/apacheDsContext.xml"/> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="classpath:/conf/ldap.properties" /> </bean> <bean id="contextSource" class="net.sf.ldaptemplate.support.LdapContextSource" > <property name="urls" value="${urls}" /> <property name="userName" value="${userName}" /> <property name="password" value="${password}" /> <property name="dirObjectFactory" value="net.sf.ldaptemplate.support.DefaultDirObjectFactory" /> </bean> <bean id="ldapTemplate" class="net.sf.ldaptemplate.LdapTemplate"> <constructor-arg ref="contextSource" /> </bean> <bean id="dataLoader" class="org.ddsteps.data.excel.CachingExcelDataLoader" /> </beans>