Using Java8 probably isn't an option - CAS 6.x requires Java11 We have been able to work around the issue by using the UnboundID provider as suggested, with settings like this:
cas.properties : cas.authn.ldap[0].providerClass= org.ldaptive.provider.unboundid.UnboundIDProvider build.gradle: // to use UnboundID ldap provider instead of JNDI compile "com.unboundid:unboundid-ldapsdk:4.0.9" On Friday, January 25, 2019 at 5:47:00 PM UTC-5, dfisher wrote: > > This appears to be a bug in JNDI code that manifests with an NPE in the > ldaptive thread local code. > I've filed an issue, but there isn't a resolution yet. > > Work arounds include: > * Use startTLS > * Use the UnboundID provider > * Use Java 8 (versions 9-12 are all affected) > > --Daniel Fisher > > On Fri, Jan 25, 2019 at 1:28 PM Julien Gribonvald <[email protected] > <javascript:>> wrote: > >> Hi, >> >> I'm beginning a new CAS configuration with latest dev version with the >> overlay packaging and when configuring ldaps I'm having a such error : >> >> java.lang.NullPointerException: Thread local SslConfig has not been set >> at >> org.ldaptive.ssl.ThreadLocalTLSSocketFactory.getDefault(ThreadLocalTLSSocketFactory.java:53) >> >> >> ~[ldaptive-1.2.4.jar!/:?] >> >> With no ssl conf I don't have any problems, here are my change to move >> on ssl use: >> >> cas.authn.ldap[0].ldapUrl=ldaps://my.domain.fr:636 >> #cas.authn.ldap[0].ldapUrl=ldap://my.domain.fr:389 >> #cas.authn.ldap[0].useSsl=false >> >> Did I make something wrong or ? >> >> Is there someone having the same problem or not ? >> >> After googling a bit it seems that could be a problem with ldaptive lib >> and jdk11... Any information about a such problem ? >> >> Thanks >> >> -- >> >> Julien Gribonvald >> >> -- >> - Website: https://apereo.github.io/cas >> - Gitter Chatroom: https://gitter.im/apereo/cas >> - List Guidelines: https://goo.gl/1VRrw7 >> - Contributions: https://goo.gl/mh7qDG >> --- >> You received this message because you are subscribed to the Google Groups >> "CAS Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/a/apereo.org/d/msgid/cas-user/b098c57c-feb6-ecaa-88a0-579ca6bb963c%40recia.fr >> . >> > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/19893719-ec68-4348-8a46-ca48e4df4002%40apereo.org.
