LDAP Login in Active Directory Environments with Multiple Subfolders #793

Open
opened 2026-03-04 11:00:05 -05:00 by deekerman · 0 comments
Owner

Originally created by @valentin2105 on GitHub (Sep 29, 2024).

Describe the bug

The LDAP connection works as expected in a typical LDAP setup when all users are located within the same Organizational Unit (OU).

However, in an Active Directory environment with multiple subfolders, users are required to provide the full distinguished name (DN) for login. For example:

CN=Valentin Ouvrard,OU=Users,OU=DSI,OU=Bureau1,OU=SITES,DC=place-holder,DC=prod

Even though the base DN is configured correctly (e.g., DC=place-holder,DC=prod), the LDAP login is unable to traverse or search through subfolders to find users in different OUs.

Steps to Reproduce

Set up LDAP in CloudBeaver with an Active Directory that has users organized in multiple sub-OUs.

Attempt to log in with a user account that is located in a subfolder (OU).

Example structure:

OU=Users
  OU=DSI
    OU=Bureau1
      OU=SITES

You will encounter the following error:

Caused by: org.jkiss.dbeaver.DBException: LDAP user access validation by filter failed: [LDAP: error code 32 - 0000208D: NameErr: DSID-0310028D, problem 2001 (NO_OBJECT), data 0, best match of:
        'DC=place-holder,DC=prod'
]

Expected Behavior
The LDAP login should be able to search through all subfolders under the configured base DN without requiring the user to provide the full DN path.

Originally created by @valentin2105 on GitHub (Sep 29, 2024). **Describe the bug** The LDAP connection works as expected in a typical LDAP setup when all users are located within the same Organizational Unit (OU). However, in an Active Directory environment with multiple subfolders, users are required to provide the full distinguished name (DN) for login. For example: `CN=Valentin Ouvrard,OU=Users,OU=DSI,OU=Bureau1,OU=SITES,DC=place-holder,DC=prod` Even though the base DN is configured correctly (e.g., DC=place-holder,DC=prod), the LDAP login is unable to traverse or search through subfolders to find users in different OUs. **Steps to Reproduce** Set up LDAP in CloudBeaver with an Active Directory that has users organized in multiple sub-OUs. Attempt to log in with a user account that is located in a subfolder (OU). Example structure: ``` OU=Users OU=DSI OU=Bureau1 OU=SITES ``` You will encounter the following error: ``` Caused by: org.jkiss.dbeaver.DBException: LDAP user access validation by filter failed: [LDAP: error code 32 - 0000208D: NameErr: DSID-0310028D, problem 2001 (NO_OBJECT), data 0, best match of: 'DC=place-holder,DC=prod' ] ``` **Expected Behavior** The LDAP login should be able to search through all subfolders under the configured base DN without requiring the user to provide the full DN path.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#793
No description provided.