<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 25, 2016 at 1:39 PM, Jeremy A Scott <span dir="ltr"><<a href="mailto:jeremy.scott@wisc.edu" target="_blank">jeremy.scott@wisc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think possibly the ideal solution would be to modify what the pool validator accepts as a valid response for a good connection.<br>
It seems coded to look for a successful search, defaulting to the root DSE, and that's it. Perhaps it could be modified to look for other responses from the server as well?<br>
(This directory says 'Not Authorized'... and I think that response is indicative of a good connection...)<br></blockquote><div><br></div><div>The current implementation checks for a result size > 0. Perhaps that could be improved by checking the result code instead. (What result code is your directory returning?).</div><div>Also, you may want to try the CompareValidator to see whether that operation is allowed for anonymous connections.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If that can't be done, then perhaps disabling connection pooling altogether might be the way to go, but that would require some serious editing of ldap-authn-config.xml...<br></blockquote><div><br></div><div>The editing isn't particularly bad, but there may be another option. You could configure a BindPassivator on the pool, that binds as your service account. This would put idle connections back into a state that works for validation. Of course this options requires editing the config as well....</div><div><br></div><div>Let me know which option you prefer and I'll help you with the config.</div><div><br></div><div>--Daniel Fisher</div><div><br></div></div></div></div>