https://bz.apache.org/bugzilla/show_bug.cgi?id=63550

--- Comment #2 from Michael Osipov <micha...@apache.org> ---
(In reply to Eugène Adell from comment #1)
> JNDIRealm.java :
> 
>         if (connectionURL != null && connectionAttempt == 0)
>             env.put(Context.PROVIDER_URL, connectionURL);
>         else if (alternateURL != null && connectionAttempt > 0)
>             env.put(Context.PROVIDER_URL, alternateURL);
> 
> This code doesn't cover the case when alternateURL == null &&
> connectionAttempt == 1
> 
> It doesn't seem difficult to provide a patch but it's necessary to know the
> expected behaviour in such case. Probably retry a connection with the
> connectionURL parameters ?

Don't use the altenative URL. Oracle's default implementation for LDAP will
handle multiple space-separated URLs properly.

The issue you see is simply a bug in the realm. localhost:389 is queried when
no provider URL is given.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to