rendered paste body<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <!-- declare filters file --> <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="ignoreResourceNotFound" value="true"/> <property name="locations"> <list> <!-- this assumes that you want to use localhost properties when testing --> <value> <!-- for testing --> /profiles/test/project.properties </value> <value> <!-- when built --> /WEB-INF/classes/project.properties </value> </list> </property> </bean> <bean id="contextSource" class="org.springframework.ldap.support.LdapContextSource"> <property name="url" value="${ldap.context.url}"/> <property name="base" value="${ldap.context.base}"/> <property name="userName" value="${ldap.context.username}"/> <property name="password" value="${ldap.context.password}"/> <property name="baseEnvironmentProperties"> <map> <entry key="java.naming.ldap.attributes.binary" value="objectGUID"/> </map> </property> </bean> <bean id="ldapTemplate" class="com.myco.usersecurity.core.ldap.MyLdapTemplate"> <constructor-arg ref="contextSource"/> </bean> <bean id="personDao" class="${LdapGroupDao}"> <property name="ldapTemplate" ref="ldapTemplate"/> </bean> <bean id="groupDap" class="${LdapGroupDao}"> <property name="ldapTemplate" ref="ldapTemplate"/> </bean></beans>