Authenticate multiple OU's
Ok, got LDAP working with AD. Thanks to those that gave examples, especially
http://tikiwiki.org/tiki-view_forum_thread.php?comments_parentId=29513&topics_offset=10&topics_sort_mode=lastPost_desc&forumId=17
But, does anyone know how to authenticate against more than one ou?
Here's sort of my OU structure
root of forest
OU1
SUBOU1
OU2
SUBOU2
SUBOU3
OU3
SUBOU4
SUBOU5
SUBSUBOU5
etc.
If I set the LDAP User DN: in PEAR::Auth as follows, here are the results
ou=OU1 (I can authenticate as any user in OU1 or SUBOU1, but nothing in OU2, or OU3)
If I set it to
ou=OU2 (I can authenticate as any user in OU2, or SUBOU2 or SUBOU3, but nothing in OU1 or OU3).
and so on for OU3.
I really need to be able to authenticate users in any of these OU's. I tried setting the LDAP user DN to ou=OU1,ou=OU2 but that doesn't work at all (can't authenticate in any OU when you do this).
Has anyone figured out how to do this?