Results 1 to 2 of 2

Thread: Authorities at multiple locations in an active directory

Hybrid View

  1. #1

    Default 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.

  2. #2

    Default

    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
  •