开发者

How to fetch users of Active Directory child domain?

开发者 https://www.devze.com 2023-02-01 05:07 出处:网络
I am able to fetch user for particular domain, but I want to fetch its child domains data also not 开发者_如何学运维sure how should be a LDAP query for it??

I am able to fetch user for particular domain, but I want to fetch its child domains data also

not 开发者_如何学运维sure how should be a LDAP query for it??

Any Idea

Thanx


With .NET 3.5, you should be able to create a domain context for that child domain, if you know that child domain's NetBIOS name.

PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "CHILDDOMAIN");

and then you can go from there - do searches, find users etc.

For more info on the new .NET 3.5 stuff in the System.DirectoryServices.AccountManagement namespace, see this excellect MSDN Magazine article Managing Directory Security Principals in the .NET Framework 3.5

0

精彩评论

暂无评论...
验证码 换一张
取 消