2011/2/24 Marvin Addison <[email protected]>:
> 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.

Hi,

thank you and Dave, it works perfectly - for the record, we're only
going to use this for a handful of cases.

-- 
Frank Van Damme
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.

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