You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2019/07/07 07:38:48 UTC

[Bug 63550] LDAP non standard port leads to JNDIRealm erratic behaviour

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

--- Comment #1 from Eugène Adell <eu...@gmail.com> ---
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 ?

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