Is it possible to to grab the users from say 4 different companys that reside on 3 different domains(1 domain has 2 companies on it) in a tree that consists of 10 domains total. I didnt think I could use the LDAP since it spans different domains so I was thinking of using GC. Does something similar to this seem possible to only grab the users from the desired companys.
<GC://FullyQualifiedDomainNameFromWithinTheDomainForest>;(&(objectClass=user)(objectCategory=person) (samAccountName=*)(mail=*)(sn=*)(|(company=comp1)(company=comp2)(company=comp3)(company=comp4))(givenName=*));sn,givenName,mail,samAccountName,department,company;Subtree
Any comments would be appreciated. Thanks!
<GC://FullyQualifiedDomainNameFromWithinTheDomainForest>;(&(objectClass=user)(objectCategory=person) (samAccountName=*)(mail=*)(sn=*)(|(company=comp1)(company=comp2)(company=comp3)(company=comp4))(givenName=*));sn,givenName,mail,samAccountName,department,company;Subtree
Any comments would be appreciated. Thanks!