Sonatype Nexus OSS 3.41.0-01 and LDAPS : failed to connect

hI,

I’m using nexus OSS 3.41 and I want to acces to my Activive Directory with LDAPS

When I use LDAP, it’s OK, Nexus is connected to my AD.
BUT
When à use LDAPS, I have the following error :
Failed to connect to LDAP Server. Please check the monext.net:636 and authentication are correct.

more log :

2022-11-14 14:09:41,738+0000 ERROR [qtp1209255336-86]  admin org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: ldap_LdapServer.verifyConnection, java-method: org.sonatype.nexus.ldap.internal.ui.LdapServerComponent.verifyConnection
java.lang.Exception: Failed to connect to LDAP Server. Please check the monext.net:636 and authentication are correct.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

Could someone tell me why and how to resolve it ?

Note : I already use LDAPS for Nexus 2 and it’s OK.

note2 : I use docker

Thanks,
Michel

@michel13,

From your description, these are my assumptions. Please confirm.

  1. Your LDAP server supports LDAPS since you could use it with Nexus 2
  2. You’ve configured both Nexus 2 and Nexus 3 to use the same host, port, and credentials for your LDAPS server.

Further questions

  1. You stated you use Docker. Are you using Docker for Nexus 2, Nexus 3, and your LDAPS server?
  2. If so, are they all hosted in the same environment?
  3. If not, could the network or DNS server be different enough between the servers to cause connectivity issues with one and not the other?