LDAP/LDAPS authentication Audit through win events

Cyril Menigoz 6 Reputation points
2021-09-20T06:10:24.167+00:00

Hello,

I looking for the best way to get information about the LDAP/LDAPS authentication from applications to my DC (2016)
I found :

  • Events ID 2889 for LDAP requests
  • Events ID 4624 that I only plan to keep only if the logon type is "network logon" (3)

What else can I get? How can I more information? How can I filter the 4624 events to only keep LDAP(S) request to my DC?

Thanks in advance

Windows for business Windows Server User experience Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2021-09-20T12:07:10.02+00:00

    Hello,

    You may enable LDAP Signing for better security.

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/enable-ldap-signing-in-windows-server

    Also you can enable additional event login for LDAP.

    Open Registry Editor. Go to HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Services → NTDS → Diagnostics. Note: Set '15 Field Engineering' to '5'. This enables Expensive and Inefficient LDAP calls to be logged in Event Viewer.

    View the logs

    Unsecure LDAP binds
    Go to Event Viewer → Filter Directory Service logs to locate the event ID 2889 (Windows Server 2003 to 2012)

    Number of daily unsecure LDAP bind
    Go to Event Viewer → Filter Directory Service logs to locate the event ID 2887 (Windows Server 2003 to 2012)

    Number of LDAP queries
    Go to Event Viewer → Filter Directory Service logs to locate the event ID 1643 (Windows Server 2003 to 2012)

    Recent LDAP queries
    Go to Event Viewer → Filter Directory Service logs to locate the event ID 1644 (Windows Server 2003 to 2012)

    Error from LDAP server
    Go to Event Viewer → Filter Directory Service logs to locate the event ID 1535 (Windows Server 2003 to 2012)

    Time-out LDAP connection
    Go to Event Viewer → Filter Directory Service logs to locate the event ID 1317 (Windows Server 2003 to 2012)

    Hope this helps.

    3 people found this answer helpful.

  2. Sebastian Cerazy 316 Reputation points
    2023-03-02T08:42:40.9033333+00:00

    And for Server 2022?

    1 person found this answer helpful.
    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.