# LDAP User base Issue

**URL:** <https://community.eazybi.com/t/ldap-user-base-issue/6106>\
**Category:** Questions & Answers\
**Created:** [February 8, 2021, 11:04am UTC](https://community.eazybi.com/t/ldap-user-base-issue/6106 "2021-02-08T11:04:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha](https://community.eazybi.com/letter_avatar_proxy/v4/letter/a/c5a1d2/32.png) [@anusha](https://community.eazybi.com/u/anusha)\
**Post date:** [February 8, 2021, 11:04am UTC](https://community.eazybi.com/t/ldap-user-base-issue/6106/1 "2021-02-08T11:04:13Z")

</div>

Hi Team,

We have a scenario to fetch users from multiple OU’s in the same DC in LDAP using AD. Can someone provide the query to fetch all active users from the same DC or fetch users from different OU paths in same DC.

---

<div class="post-metadata">

**Author:** ![martins.vanags](https://community.eazybi.com/user_avatar/community.eazybi.com/martins.vanags/32/8905_2.png) [@martins.vanags](https://community.eazybi.com/u/martins.vanags)\
**Post date:** [February 22, 2021, 11:29am UTC](https://community.eazybi.com/t/ldap-user-base-issue/6106/2 "2021-02-22T11:29:09Z")

</div>

Hi @anusha

Here is one scenario we have tested today.

First, these settings were in ldap.toml (base = “ou=people,o=jva”) that included all users.

Then, the following OU was added to LDAP server **OU: “ou=other\_people,o=jva”** on one user was added in it. As expected, the user couldn’t log into eazyBI.

Next, in ldap.toml file the change was done to "base = “o=jva”  
After that users from both OUs (“ou=people,o=jva” & “ou=other\_people,o=jva”) were able to log in to eazyBI

This is tested on eazyBI 6.1.0 with Apache Directory Studio inbuilt server.  
So it should work also on newer eazyBI versions.

I hope it helps.  
Martins / eazyBI support
