-
Sep 22nd, 2010, 10:12 AM
#1
Authorities at multiple locations in an active directory
As it stands, we have groups (authorities) located in two (or more) locations in our AD.
<bean id="authoritiesPopulator" class="org.springframework.security.ldap.populator .DefaultLdapAuthoritiesPopulator">
<constructor-arg ref="contextSource" />
<constructor-arg value="CN=Users" />
<property name="groupRoleAttribute" value="CN" />
<property name="searchSubtree" value="true" />
<property name="rolePrefix" value="" />
<property name="convertToUpperCase" value="false" />
</bean>
Now, I've tried changing the second constructor-arg to value="" but that generates an error, and I've been looking for a way to set up more than one populator but to no avail (other than making one myself - which is I guess an option if there's no configuration-based way to do it). Spring security version is 2.0.4.
-
Sep 22nd, 2010, 10:59 AM
#2
Heh, referrals. Problem solved:
<bean id="contextSource" class="org.springframework.security.ldap.DefaultSp ringSecurityContextSource">
........
<property name="baseEnvironmentProperties">
<map>
<entry key="java.naming.referral" value="follow" />
</map>
</property>
</bean>
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules