AD Connection error

Hi all,
Trying to connect to AD for the first time in sandbox, and have stumbled upon this error:
Can anyone shed any light before I book in some professional services time:

Details:
This source couldn’t be connected due to an error.
[ InvalidConfigurationException ]
[ Possible suggestions ] Ensure that SSL communication is in place with domain.
[ Error details ] Failed to connect to - dc=test,dc=net : java.lang.Exception: [ERROR 1] Failed to connect to server:ldap://vmprtuksadc001.test.net:636 - javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[ERROR 2] Failed to connect to server:ldap://vmprtuksadc002.test.net:636 - javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Thanks
Phil

Hi @phil_awlings

It’s like this error is due to TLS certificate issue as you TLS communication on port 636 with your active directory are you sure that the certificate is valid ?

In your configuration you can only replace port 636 by 389 and test. If it’s work that confirm the TLS certificate issue.

Also, you can retrieve the current certificate from your Active directory by asking your AD team or inspect existing certificate with following command in your VA :

TLS Tips and Tricks
Inspect certificates using the openssl command, where certname.cer is the name of the certificate.

openssl x509 -in /home/sailpoint/certificates/certname.cer -text

 

Check the certificate details of a TLS endpoint, where server.domain.local is the FQDN of the host and port is the port to make the TLS connection on.

openssl s_client -connect server.domain.local:port

You can copy the certificate from this command, it is the block containing and including -----BEGIN CERTIFICATE----- through -----END CERTIFICATE-----.

Important note !
For security reason i suggest you to not display your DC base path dc=enxxx and your Ad host in your post. You can replace this values with random value when you posting exemple : dc=xyz,dc=xyz and ldap:/hostname:636 -

Hi @phil_awlings,

you are trying to connect to AD with a secure connection but IDNOW cannot verify the certificate.
It could depends that certificate is not valid or not exist or IDNOW cannot read it.
Also, you try to connet on port 636(SSL port) but your string uses ldap.

Try to use ldaps with 636 port:
ldaps://vmprtuksadc001.enniqa.net:636
or
ldap://vmprtuksadc001.enniqa.net:389 → no ssl connection.

If the problem persist check the certificate status on AD and on VA

When using port 389, I get the same error:
Error Received:

[ InvalidConfigurationException ] [ Possible suggestions ] Ensure that the Active Directory Service is up and running. [ Error details ] Failed to connect to - dc=test,dc=net : java.lang.Exception: [ERROR 1] Failed to connect to server:ldap://vmprtuksadc001.test.net:389 - java.net.SocketException: Connection reset [ERROR 2] Failed to connect to server:ldap://vmprtuksadc002.test.net:389 - java.net.SocketException: Connection reset

Currently looking at the certificates for any information

PS Thanks for the advice about obscuring the DC

ok, have you tried with ldaps and 636 port?

Hi @phil_awlings ,

As you are trying with SSL communication, try ldaps://hostname:636.
If you are trying a Non-SSL communication, try ldap://hostname:389.

How/where do I change it from ldap to ldaps? I thought that it was hardcoded to ldap?

Thanks

Hi @phil_awlings

Enable Enable Transport Layer Security (TLS) to use TLS to connect to the server.
this uses 636 port/ldaps

Thanks

These are my domain settings:

Turns out that the certificate had been corrupted along the way, so that has been fixed.
Then we were stuck on a timeout error because port 5050 were not open - that has been fixed.
Now we have this error:
image
Using either strong (389) or simple (636) authenitication.
but they are clearly in the config:

Any suggestions.

Have checked that we are logging on as the user:
image

Hi @phil_awlings

Is the IQService username and password supplied in the source are same as in the IQService instance installed?

Thanks

Hi @Sriindugula
This:
image
matches this:


which matches this:
image

I don’t know where else to put the username and password, and the error is that it is missing, not that it is incorrect

@phil_awlings Please refer to this article:

IQService Settings.

Add username to the IQ service settings in the GUI:


Now the error message is this:
image
If tried both ‘prefix’ and ‘prefix@suffix’, and both give the same message

@Sriindugula I’ve had that document open for days now. I’ve already submitted 2 corrections to it. Its not the most useful pieces of instruction and trouble shooting

Solution:
The username here:


Had to be in this format: domain\username

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.