Title: Two Base DNs
Last modified: October 9, 2018

---

# Two Base DNs

 *  Resolved [czinn](https://wordpress.org/support/users/czinnkzooedu/)
 * (@czinnkzooedu)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/two-base-dns/)
 * We have our users split between 2 CNs, so the base DNs are different.
    For example,
   cn=apples,dc=abc,dc=com AND cn=oranges,dc=abc,dc=com How can I specify to search
   both? leaving off the cn does not work, and cn=* does not work. To specify both,
   I leave off the cn= and it works fine. Thanks!
    -  This topic was modified 7 years, 8 months ago by [czinn](https://wordpress.org/support/users/czinnkzooedu/).
      Reason: Found my own solution

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * (@gilzow)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/two-base-dns/#post-10764319)
 * you beat me to even getting a chance to respond! Glad you were able to find the
   answer. Going to go ahead and mark this as “resolved”.
 * Just in case you run into any more complex queries, there is a filter `wpdirauth_filterquery`
   which will let you adjust the query being used in `ldap_search`. Documentation:
   [http://www.gilzow.com/_wpdirauth/hooks/filters/filterquery/](http://www.gilzow.com/_wpdirauth/hooks/filters/filterquery/)

Viewing 1 replies (of 1 total)

The topic ‘Two Base DNs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpdirauth.svg)
 * [wpDirAuth](https://wordpress.org/plugins/wpdirauth/)
 * [Support Threads](https://wordpress.org/support/plugin/wpdirauth/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdirauth/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdirauth/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdirauth/reviews/)

## Tags

 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Gilzow](https://wordpress.org/support/users/gilzow/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/two-base-dns/#post-10764319)
 * Status: resolved