Issue using User Federation/LDAP provider in keycloak 16.1.0 with Java 8

456 views
Skip to first unread message

Soodeshna Bappoo

unread,
Dec 22, 2021, 5:40:59 AM12/22/21
to Keycloak User
Hello,

I have an LDAP configuration with Active Directory which works well with keycloak 14 and Java 8.

I tested the same LDAP configuration with keycloak 16.1.0 and I had the following error when I made a request to test the authentication of the LDAP configuration. 

ldap.png


ldap-keycloak.png


Based on the installation prerequisites: https://www.keycloak.org/docs/latest/server_installation/#:~:text=Java%208%20JRE%20or%20Java%2011%20JRE, Keycloak 16.0.1  was supposed to support Java 8. Upon upgrading to Java 11, the issue was resolved.

Thanks,
Soodeshna
ldap.png
ldap-keycloak.png

Niko Köbler

unread,
Dec 22, 2021, 5:44:12 AM12/22/21
to Keycloak User
I made some similar experience (not LDAP, but custom extensions) when using Java 8 with KC16+.
It seems, that the underlying Wildfly version now requires Java 11+ to run properly, as there are libraries used which are Java 11+ based.

Michael Wagner

unread,
Dec 22, 2021, 10:14:06 AM12/22/21
to Keycloak User
I had the same error message after upgrading from 15.02 to 15.1.0.
https://keycloak.discourse.group/t/error-after-upgrading-from-15-0-2-to-15-1-0-internal-server-error/12643
I hope to have some time to give it a try with Java 11, didn't think about it, that Java could be the problem.

Soodeshna Bappoo schrieb am Mittwoch, 22. Dezember 2021 um 11:40:59 UTC+1:
Reply all
Reply to author
Forward
0 new messages