I have a multi-domain forest (Win2K) with a directory asp application running on a DC at the root domain. I plan to query the Active Directory on the root domain to provide staff details via the website. I am able to get a list of users that are members of the root domain using the following query:
SELECT telephoneNumber, name, mail, title FROM 'LDAP://192.168.5.2/OU=Staff,DC=mycompany,DC=com' WHERE objectClass='user'
Should it be possible to query the same root server to get users from a sub domain e.g.
LDAP://192.168.5.2/OU=Admin,DC=site1,DC=mycompany,DC=com' WHERE objectClass='user'
I can query the sub domains directory if I change the ip to look directly at their GC, but I thought the root domain would also keep a copy of the sub domain's active directory.
I don't want to query our eight different sites just to get a staff list if it can be avoided.
Also is it possible to get the properties of an OU to get the site address info?
Many thanks
SELECT telephoneNumber, name, mail, title FROM 'LDAP://192.168.5.2/OU=Staff,DC=mycompany,DC=com' WHERE objectClass='user'
Should it be possible to query the same root server to get users from a sub domain e.g.
LDAP://192.168.5.2/OU=Admin,DC=site1,DC=mycompany,DC=com' WHERE objectClass='user'
I can query the sub domains directory if I change the ip to look directly at their GC, but I thought the root domain would also keep a copy of the sub domain's active directory.
I don't want to query our eight different sites just to get a staff list if it can be avoided.
Also is it possible to get the properties of an OU to get the site address info?
Many thanks