My colleague noted this thread and shared the following link, which I
believe describes how to do what you asked:

http://download.oracle.com/javase/jndi/tutorial/ldap/misc/aliases.html

You would specify this sort of JNDI configuration in the JNDI
environment setup in deployerConfigContext.xml as follows:

<bean id="contextSource"
  class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="pooled" value="false"/>
        <property name="urls">
                <list>
                        <value>ldaps://ldap.rutgers.edu/</value>
                        <value>ldaps://ldap2.rutgers.edu/</value>
                </list>
        </property>
        <property name="baseEnvironmentProperties">
                <map>
      <entry key="java.naming.security.authentication" value="simple" />
      <entry key="java.naming.ldap.derefAliases" value="always" />
                </map>
        </property>
</bean>

For what its' worth, my colleague Dave that shared the link above
advised that advanced LDAP features like alias dereferencing and
referral following should be avoided where possible.

M

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to