Title: Multiple OU in Base DN
Last modified: August 21, 2016

---

# Multiple OU in Base DN

 *  Resolved [iltdevunit](https://wordpress.org/support/users/iltdevunit/)
 * (@iltdevunit)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/multiple-ou-in-base-dn/)
 * I need to use 2 OU’s in the Base DN setting. I only seem to be able to use one.
   Is there a way around this?
 * [https://wordpress.org/plugins/active-directory-integration/](https://wordpress.org/plugins/active-directory-integration/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [iltdevunit](https://wordpress.org/support/users/iltdevunit/)
 * (@iltdevunit)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/multiple-ou-in-base-dn/#post-5074742)
 * It seems if you leave OU out of the Base DN entirely, then that does the job 
   🙂
 *  Thread Starter [iltdevunit](https://wordpress.org/support/users/iltdevunit/)
 * (@iltdevunit)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/multiple-ou-in-base-dn/#post-5074743)
 * Marking as resolved.
 *  [Kuupay](https://wordpress.org/support/users/kuupay/)
 * (@kuupay)
 * [12 years ago](https://wordpress.org/support/topic/multiple-ou-in-base-dn/#post-5074970)
 * Hi iltdevunit, what do you mean “leave OU out of the Base DN entirely” ? Do you
   specified the OU elsewhere than in the base DN field ?
 * My problem is i’m trying to use the bulk import with one or more OU in the base
   DN, but if try to add something other than the two dcs, like :
 * ou=Staff,ou=Users,dc=dc2,dc=dc1
 * the import fails whatever security group i set, when there actually is users 
   belonging to the security group i specified and who are in the folder dc1.dc2/
   Users/Staff in the AD tree.
 * I tried to modify the code part who imports users to :
 * `$members = $this->_adldap->folder_list(array('Staff','Users'), ADLDAP_FOLDER,
   false, 'user');`
 * but it does not work, the array’s not being filled properly (i have value ‘array’
   inside and a number). This method does also not filter by security groups but
   it’s not a problem for me since i need all users regardless of their group, but
   regardful of their OU.
 * The plugin author said that import from a specific OU is not possible yet ( [http://wordpress.org/support/topic/bulk-import-only-users-from-a-specific-ou?replies=3](http://wordpress.org/support/topic/bulk-import-only-users-from-a-specific-ou?replies=3))
   but i’m sure that with the good modification in the good place it’ll work like
   a charm.
 * So if someone has any idea he’s welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multiple OU in Base DN’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/active-directory-integration_e2ecae.
   svg)
 * [Active Directory Integration](https://wordpress.org/plugins/active-directory-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/active-directory-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/active-directory-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/active-directory-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/active-directory-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/active-directory-integration/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kuupay](https://wordpress.org/support/users/kuupay/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/multiple-ou-in-base-dn/#post-5074970)
 * Status: resolved