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]> 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].
> 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/CAFC6YwSxnKgGG%2B6ZtiZQmLYzVLZ_AefVH_WcXOR2rPnRc3FDWA%40mail.gmail.com.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to