I am trying to do a Profile Import into SharePoint of Users from two
different Sub OUs from Active Directory. SharePoint does not allow
two connections to one Domain, so I am looking for a workaround.
This is the logical outline of the DCs then Sub OUs in our Active
Directory. I need to import from the two Users sub OUs, they are
both in the
YYY
XXX
A1
A2 D1
D1 Users
D2
Users
There is a blog showing an example of a User Filter of 2 SUB OUs in
one domain which appears to work for them. I cannot get this to
work - here is what is working/what is not working:
_____________________________________
This is not working(nothing is returned):
Search Base:
OU=A1, DC=xxx, DC=yyy
User Filter:
(&(objectCategory=person)(objectClass=user)(!
userAccountControl:1.2.840.113556.1.4.803:=2)(!
userAccountControl=65536)(|(memberof:1.2.840.113556.1.4.1941:=
(OU=Users, OU=D1, OU=A1, DC=xxx, DC=yyy))
(memberof:1.2.840.113556.1.4.1941:=(OU=TUsers, OU=D2, OU=D1, OU=A2,
OU=A1, DC=xxx, DC=yyy))))
_____________________________________
Simplified is NOT working(nothing is returned):
Search Base:
OU=A1, DC=xxx, DC=yyy
User Filter:
memberof:1.2.840.113556.1.4.1941:=(OU=TUsers, OU=D2, OU=D1, OU=A2,
OU=A1, DC=xxx, DC=yyy)
_____________________________________
This DOES work (only profiles in the TUsers sub OU are returned):
Search Base:
OU=TUsers, OU=D2, OU=D1, OU=A2, OU=A1, DC=xxx, DC=yyy
User Filter:
(&(objectCategory=person)(objectClass=user)(!
userAccountControl:1.2.840.113556.1.4.803:=2)(!
userAccountControl=65536)