Sfoglia il codice sorgente

Corrected ldap sample config (traditional bean version was wrong)

Luke Taylor 17 anni fa
parent
commit
6ff0b969d5

+ 2 - 3
samples/ldap/src/main/webapp/WEB-INF/applicationContext-security.xml

@@ -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"/>