Connection reset

Glenn Maxwell 12,336 Reputation points
2024-01-23T04:08:46.1366667+00:00

Hi All I am getting error connecting one of my Application to Active Directory. I am using service account.The service account credentials are correct. If i use dc01.contoso.com i am getting below error. i have unchecked TLS as well.

Error while connecting to ldap://dc01.contoso.com, java.net.socketexception: Connection reset.

Failed LDAP connection to : ldaps://dc01.contoso.com:636 - javax.naming.CommunicationException: 
dc01:636 [Root exception is java.net.SocketException: Connection reset]

i have tried the below ways to connect i am getting error. i am also using ldap which is ldap.mydomain.com

ldap.mydomain.com port 636 
ldap.mydomain.com port 389 
ldaps.mydomain.com port 636 
dc01.mydomain.com port 636 
dc01.mydomain.com port 389

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,901 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,574 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,682 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,875 questions
0 comments No comments
{count} votes

Accepted answer
  1. Thameur-BOURBITA 35,436 Reputation points
    2024-01-23T10:32:01.63+00:00

    Hi @Glenn Maxwell

    Did you try to connect on dc01.mydomain.com through LDAPS and LDAP protocole through ldp.exe client ?

    If the connection is not ok through ldp.exe , you should check network and certificate installed on DC01. If it's not the case you should post on Java forum.


    Please don't forget to accept helpful answer

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Daisy Zhou 29,071 Reputation points Microsoft Vendor
    2024-01-25T02:40:22.77+00:00

    Hello Glenn Maxwell, Thank you for posting in Q&A forum. There is only an error message on your screenshot, and the preliminary judgment may be that you do not have permission to access AD or network connection problems, and you can use the network packet capture tool to view the specific problems. I hope the information above is helpful. If you have any question or concern, please feel free to let us know.

    Best Regards, Daisy Zhou


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

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