<html><head></head><body>Me too, but I couldn't get it to work that way. Don't have much experience with this stuff. <br>
<br><br><div class="gmail_quote">On March 24, 2016 12:11:22 PM EDT, John Horne <john.horne@plymouth.ac.uk> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Thu, 2016-03-24 at 10:10 -0400, Craig Pluchinsky wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> I modified the Authentication handler section in <br /> authn/ldap-authn-config.xml to add connectionStrategy for default <br /> provider (JNDI). Note I did remove connection pooling and switched<br /> to <br /> BindAuthenticationHandler. This worked but might not the correct<br /> way.<br /> <br /> <bean id="authHandler" <br /> class="org.ldaptive.auth.BindAuthenticationHandler" <br /> p:connectionFactory-ref="bindConnectionFactory" /><br /> <bean id="bindConnectionFactory" <br /> class="org.ldaptive.DefaultConnectionFactory" <br /> p:connectionConfig-ref="bindConnectionConfig" <br /> p:provider-ref="jndiProvider"/><br /> <bean id="jndiProvider" <br /> class="org.ldaptive.provider.jndi.JndiProvider" <br />
p:providerConfig-ref="jndiConfig" /><br /> <bean id="jndiConfig" <br /> class="org.ldaptive.provider.jndi.JndiProviderConfig" <br /> p:connectionStrategy="RANDOM" /><br /> <bean id="bindConnectionConfig" parent="connectionConfig" /><br /> <br /></blockquote>Thanks for that. I would have thought though that the strategy would<br />have been part of the 'connectionConfig', since that is where the URLs<br />are defined, rather than a per-provider thing.<br /><br />I have no problem with using a pool, but would like it to use round-<br />robin when selecting which LDAP server/URL should be used for any new<br />connections.<br /><br /><br /><br /><br />John.<br /> </pre></blockquote></div></body></html>