Skip to content
  • There are no suggestions because the search field is empty.

How To Prevent Insecure ADSI/LDAP User Authentication

By default, Windows Servers have a security vulnerability in Windows Active Directory where unauthenticated binds are enabled by default. Unauthenticated binds allow users to authenticate as an "anonymous user" by providing a valid username with a blank password, which could be exploited by malicious users. The LDAP protocol recognizes this as a legitimate, but insecure behavior. To mitigate this, Microsoft added the ability to disable unauthenticated binds starting with Windows Server 2019.

How to prevent insecure user authentication via ADSI or LDAP/S and other potential security vulnerabilities due to Unauthenticated Binds in Windows Active Directory (AD).

Steps

  1. On your AD Server Open ADSIEdit (Run, adsiedit.msc)
  2. Connect to the Configuration Partition
  3. In the ADSIEdit window, right-click on ADSI Edit and select Connect to...
    ADSI Edit
  4. Choose Configuration under the "Select a well-known Naming Context" dropdown and click OK
    LDAP Config
  5. Navigate to the Directory Services Properties:
  6. Expand Configuration -> CN=Configuration -> CN=Services -> CN=Windows NT
  7. Right-click on CN=Directory Service and select Properties
    LDAP Properties
  8. Modify the msDS-Other-Settings Attribute:
    1. In the properties window, locate the msDS-Other-Settings attribute
    2. Click Edit and add a new entry: “DenyUnauthenticatedBind=1”
    3. Click OK to save the changes
     LDAP Other settings

     

     LDAP Multi-value

     

     

    Note: The setting takes effect immediately and does NOT require a reboot of your server

     Attempt to log in using an FTPS, HTTPS, or SFTP client (OpenSSH, WebUI, WinSCP, etc.) and an AD or LDAP user account without a password; the login should fail, confirming that unauthenticated binds are disabled
     

    Note:
    You must ensure that all domain controllers or Lightweight Directory Services (LDS) servers are upgraded to Windows Server 2019 or later to utilize this feature. This change enhances security by preventing unauthenticated access to your AD environment.

    Need More Help? We’ve Got You Covered.

    If you didn’t find what you were looking for, our support team is here to help. Customers with active maintenance and support can join the help desk and Submit a ticket and one of our experts will follow up shortly.