Title: [Plugin: Active Directory Integration] Multiple Organizational Unit
Last modified: August 19, 2016

---

# [Plugin: Active Directory Integration] Multiple Organizational Unit

 *  Resolved [DonChino](https://wordpress.org/support/users/donchino/)
 * (@donchino)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/)
 * I noticed someone asked about Multiple Domains but I am more interested in Multiple
   Organization Units, although I will admit that I am not an Active Directory expert.
 * Basically, under the tab – USER – there is a user-specific setting for “Account
   Suffix” and it only allows you to enter in one. So for example, I might have 
   americas.company.com but I also have emea.company.com and asiapacific.company.
   com…
 * So is there a way to check the username against other organization units? That
   way if the user is part of a single domain but instead part of a different organization
   unit and have this appended in the following option. If we so choose…
 * Alternate Conversation:
    [Multiple Domains](http://wordpress.org/support/topic/plugin-active-directory-integration-multiple-domains)
 * [http://wordpress.org/extend/plugins/active-directory-integration/](http://wordpress.org/extend/plugins/active-directory-integration/)

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/page/2/?output_format=md)

 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978837)
 * Leave “Account Suffic” empty and then login with “username@subdomain.domain.tld”.
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978838)
 * But this can be something for a future version. But what will happen, if there
   is [john@emea.company.com](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/john@emea.company.com?output_format=md)
   and also [john@asiapacific.company.com](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/john@asiapacific.company.com?output_format=md)?
   These are two different users. So it is impossible to log them on with the samaccountname
   only.
 * If you have any idea, how this Multi-OU-Feature should work, make a feature request
   on [http://bt.ecw.de](http://bt.ecw.de).
 *  Thread Starter [DonChino](https://wordpress.org/support/users/donchino/)
 * (@donchino)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978839)
 * You would think that but every username is UNIQUE so it does not matter what 
   OU they belong to, so your example:
 * [john@emea.company.com](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/john@emea.company.com?output_format=md)
   
   and [john@asiapacific.company.com](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/john@asiapacific.company.com?output_format=md)
 * would NEVER exist because our emails are [john@aol.com](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/john@aol.com?output_format=md)
   for example, but john can belong to either emea or asiapacific and NEVER both,
   since the email address has to be UNIQUE.
 * So that is why I asked if the plugin can be updated to check multiple OU’s based
   on username because it will ALWAYS be unique. Thanks for replying though… 🙂
 * I will throw up a request because the plugin is awesome and worked unlike problems
   I had with the other 3 I tried, but I won’t name them here…
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978840)
 * Hmm… what if you don’t use any OU in your Base DN like “dc=mydomain,dc=tld” ?
 *  Thread Starter [DonChino](https://wordpress.org/support/users/donchino/)
 * (@donchino)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978855)
 * So to recap:
 * John can belong to DOMAIN
    emea.company.com OR asiapacific.company.com
 * His email is: [John@company.com](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/John@company.com?output_format=md)
 * So any user can belong to any number of OUs but a unique email is shared worldwide.
 * So in the form you have:
    Account Suffix [__________] Account Suffix (will be
   appended to all usernames in the Active Directory authentication process; e.g.,“
   @domain.tld”.)
 * So if John is part of [@emea](https://wordpress.org/support/users/emea/).company.
   com
    and you put here [@emea](https://wordpress.org/support/users/emea/).company.
   com
 * then it will work
 * but what if you put here [@emea](https://wordpress.org/support/users/emea/).company.
   com
    and John belongs to @asiapacific.company.com
 * Then it does NOT work
    and if you put [@company](https://wordpress.org/support/users/company/).
   com then it still does NOT work.
 * THE IDEAL would be to code the plugin to check MULTIPLE OU’s because you do not
   know which OU your user will belong to, so you would put something like:
 * [@emea](https://wordpress.org/support/users/emea/).company.com | @asiapacific.
   company.com
 * This will try to log in with different OUs appended to the Username, because 
   currently it only allows you to enter ONE. So this is the problem, since THIS
   is where it tries to do the validation to see if you exist in AD. Should be an
   easy fix to add logic to check multiple OUs and then your plugin will RULE all
   the others, since this one works for me in WordPress 3.1…
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978856)
 * I have already understood what you mean. I will see if it’s something for 1.1.
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978857)
 * I have added this as a feature request here: [http://bt.ecw.de/view.php?id=18](http://bt.ecw.de/view.php?id=18)
 *  Thread Starter [DonChino](https://wordpress.org/support/users/donchino/)
 * (@donchino)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978860)
 * Hahaha, sorry for repeating then… 🙂
 * I just wanted to be sure all your fans understood…
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978865)
 * I worked on this feature and think I got it running. It will be part of 1.1 which
   will be released the next days.
 *  Thread Starter [DonChino](https://wordpress.org/support/users/donchino/)
 * (@donchino)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978889)
 * So has version 1.0.1 been released or will it still be part of 1.1?
 * 🙂
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978890)
 * No, 1.0.1 is not released until now. But I will commit a development version 
   today or tomorrow. 1.1 will be the next official release. Stay tuned.
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978891)
 * I have committed the development version 1.0.1: [http://downloads.wordpress.org/plugin/active-directory-integration.zip](http://downloads.wordpress.org/plugin/active-directory-integration.zip)
 * Give it a try.
 *  Thread Starter [DonChino](https://wordpress.org/support/users/donchino/)
 * (@donchino)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978892)
 * Dude, it works but I did find a minor “bug”… Spaces!!!
 * So if I put
    americas.company.local; emea.company.local
 * it FAILS so you have to put:
    americas.company.local;emea.company.local
 * So really minor but you should be able to “fix” to handle SPACES because most
   people would input it that way. 🙂
 * I believe I found TWO NEW enhancement requests, since your AD Plugin is RULING…
   🙂
 *  Plugin Author [glatze](https://wordpress.org/support/users/glatze/)
 * (@glatze)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978895)
 * Thanks for your bug report. I have fixed it in the development version: [http://downloads.wordpress.org/plugin/active-directory-integration.zip](http://downloads.wordpress.org/plugin/active-directory-integration.zip)
 *  [greg.fenton](https://wordpress.org/support/users/gregfenton-1/)
 * (@gregfenton-1)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/#post-1978950)
 * Hi glatze,
 * What about allowing having the suffix set (e.g. @corp-extern.local), but if a
   user logs in with a domain (e.g. [me@corp-internal.local](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/me@corp-internal.local?output_format=md))
   then you pass that thru without appending the set suffix?
 * Thoughts?
 * Thanks.

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/page/2/?output_format=md)

The topic ‘[Plugin: Active Directory Integration] Multiple Organizational Unit’ 
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/)

 * 29 replies
 * 3 participants
 * Last reply from: [glatze](https://wordpress.org/support/users/glatze/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-active-directory-integration-multiple-organizational-unit/page/2/#post-1978965)
 * Status: resolved