Repository navigation
KEYCLOAK-14162 Uplifted Apache DS version for LDAPEmbeddedServer - #7069
Conversation
Signed-off-by: Tero Saarni <tero.saarni@est.tech>
|
@mposolda, @iankko could you please review? Thank you! Removal of storage backend specific subclassesThis PR keeps both file and in-memory backend options, but I removed the Installing interceptorThere are two test cases that depend on adding The interceptor has been installed when in-memory server is used here I have now copied this behavior: I add the interceptor always when in-memory backend is used. See here https://github.com/Nordix/keycloak/blob/apacheds-uplift/util/embedded-ldap/src/main/java/org/keycloak/util/ldap/LDAPEmbeddedServer.java#L218 This maybe now looks bit stranger than previously, since it is now bit more visible and not really explained why the directory server partition type has any impact on ApacheDS interceptors. Question: in theory there could be a new property to enable the interceptor per test case when needed. Do you think it would be worth of adding this property or is it ok like this? |
|
@tsaarni Thanks! PR looks nice to me. I've tried locally that LDAPEmbeddedServer and KerberosEmbeddedServer can be still executed and "persistence" works as expected. I've tried to run our internal pipeline with the PR and will approve if that passes. |
There was a problem hiding this comment.
Tests passed in our lab with all the JDK versions, so seems to be fine. Approving.
There was a problem hiding this comment.
LGTM @tsaarni Thanks, Tero!
The former JDK11 hang seems to be gone with this version (AFAICT from testing) for all of the cases:
- no debug options used at all,
- using the
-Djavax.net.debug=sslone, - using the
-Djavax.net.debug=allone.
LDAPEmbeddedServer and KerberosEmbeddedServer depend on old version of ApacheDS which hangs occasionally on LDAP federation tests when StartTLS is used. This problem seems to happen very frequently with OpenJDK 11 (and later) on Ubuntu.
To fix the problem, update to the latest version of ApacheDS.