Corrected ldap sample config (traditional bean version was wrong)

This commit is contained in:
Luke Taylor 2008-06-23 23:43:48 +00:00
parent 775a6c3939
commit 6ff0b969d5
1 changed files with 2 additions and 3 deletions

View File

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