LDAPS tls/ssl version

a1 26 Reputation points
2024-03-03T16:07:01.0766667+00:00

Hey,

I am using ADSI COMM interface (CPP) to connect using LDAPS to retrieve objects from Active directory.

How do I know which TLS version it is using? How is it distinguished? I didn't find this configuration in ADSI COMM documentation, I was told to specify only ldaps:// prefix and then it is using LDAPS

Thank you.

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

2 answers

Sort by: Most helpful
  1. VasimTamboli 5,215 Reputation points
    2024-03-03T19:45:58.8+00:00

    Hi,

    You can use Wireshark tool.

    https://www.wireshark.org/ downlaod and install it.

    Open Wireshark.

    Capture LDAPS Traffic: Choose your network interface and start capturing LDAPS traffic.

    Filter LDAPS Traffic: Apply a filter to focus only on LDAPS traffic (use "ldap.port == 636").

    Trigger Connections: Perform actions in your application that result in LDAPS connections to Active Directory.

    Check Handshake: Wireshark captures the traffic, including SSL/TLS handshakes.

    Analyze TLS Version: Look at the SSL handshake packets to determine the TLS version being used.

    Optional Server Logs: Check logs on the LDAP server to see if TLS versions negotiated during LDAPS connections are logged.

    Please accept as answer if it helps.

    1 person found this answer helpful.
    0 comments No comments

  2. Yanhong Liu 14,195 Reputation points Microsoft External Staff
    2024-03-12T06:25:41.0133333+00:00

    Hello a1,

    Thank you for posting in Q&A forum.

    Based on your description, you can use the Wireshark tool to analyze the TLS version used. First of all, you need to download and install Wireshark on the official website. Open Wireshake and select the network port to start capturing LDAPS traffic. Then enter 'ldap.port==636' in the filter in Wireshark. When Wireshark captures all traffic including the SSL/TLS handshake, you can view the SSL handshake packets to determine which TLS version is being used.

    Best Regards,

    Yanhong Liu

    ============================================

    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.