Connection reset

Glenn Maxwell 12,876 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 for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    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. Anonymous
    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.