Unable to make LDAPS(636) call to Untrusted External Forest domain Active Directory

Preetham Anandaram 6 Reputation points
2021-08-16T14:01:27.767+00:00

When LDAPS(636) call made to external forest domain Active Directory, the connection is getting failed and the below error message has been logged in the event viewer log.
"The certificate received from the remote server was issued by an untrusted certificate authority."

We have 2 untrusted forests, Forest-A and Forest-B, both the forests have it's own CA servers and during LDAPS call from Forest-A to Forest-B, certificates are involved, hence the call is failing with the error message.

In my understanding, I need to share the same certificate between the untrusted forests to make LDAPS calls, please correct me if I am wrong.

I found out that we have to implement "cross-forest certificate enrollment" in order to achieve the LDAPS communication between the Untrusted External Forest Domains. Is that correct?

Please suggest me, how should I make LDAPS(636) call to Untrusted External Forest Domains Active Directory. (I still want to keep the forests untrusted)
I am implementing this using .net framework.

Thanks in advance.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gary Reynolds 9,626 Reputation points
    2021-08-23T11:06:35.893+00:00

    Hi @Preetham Anandaram ,

    You are receiving the error because the certificate that has been used for the LDAPS connection on the remote server is not trusted by the machine that is making the connection to the server. The root certificate of the certificate chain needs to be added to the trust root container.

    Have a look at this article which may help troubleshoot the connection error.
    https://nettools.net/howto-troubleshoot-ad-ldaps-connection-issues/

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.