Loading...
 
LDAP / Active directory

LDAP / Active directory


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?

Lost the indentation in the above when I posted it. It was supposed to look like this
OU1
...SUBOU1
OU2
...SUBOU2
...SUBOU3
OU3
...SUBOU4
...SUBOU5
......SUBSUBOU5

Hopefully you get the point of how these OU's are nested.


United States

Why not set the base DN to the forest root and leave the userDN blank?

\\Greg


If you mean to set it like this:
LDAP Scope: sub
LDAP Base DN: dc=mydomain,dc=com
LDAP User DN:
that doesn't work.


I guess you might need set "LDAP Scope: base"

I had the same problem and posted my solution here.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting