Browse Source

Corrected ldap sample config (traditional bean version was wrong)

2.0.x
Luke Taylor 18 years ago
parent
commit
6ff0b969d5
  1. 5
      samples/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml

5
samples/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml

@ -18,7 +18,7 @@
<!-- Simple namespace-based configuration --> <!-- Simple namespace-based configuration -->
<s:ldap-server ldif="classpath:users.ldif" port="33389"/> <s:ldap-server ldif="classpath:users.ldif" port="33389"/>
<s:ldap-authentication-provider <s:ldap-authentication-provider
group-search-filter="member={0}" group-search-filter="member={0}"
group-search-base="ou=groups" group-search-base="ou=groups"
@ -51,8 +51,7 @@
<bean class="org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator"> <bean class="org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator">
<constructor-arg ref="contextSource" /> <constructor-arg ref="contextSource" />
<constructor-arg value="ou=groups" /> <constructor-arg value="ou=groups" />
<property name="groupSearchFilter" value="member={0}"/> <property name="groupSearchFilter" value="(member={0})"/>
<property name="groupRoleAttribute" value="ou" />
<property name="rolePrefix" value="ROLE_"/> <property name="rolePrefix" value="ROLE_"/>
<property name="searchSubtree" value="true"/> <property name="searchSubtree" value="true"/>
<property name="convertToUpperCase" value="true"/> <property name="convertToUpperCase" value="true"/>

Loading…
Cancel
Save