Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2004, 04:18 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Active Directory Organizational Units

Hi Experts,

Can anyone provide me help in creating Users under any particular Organizational Unit in the Active Directory. I also want to know how to list out all the Organizational Units in an Active Directory

Thanks in Advance

Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old October 7th, 2004, 12:57 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

I got the answer for myself

DirectoryEntry entry = new DirectoryEntry(LDAPPath);
DirectorySearcher mySearcher = new DirectorySearcher(entry);
mySearcher.Filter = ("OU=*");

foreach(SearchResult resEnt in mySearcher.FindAll())
    Console.WriteLine(resEnt.GetDirectoryEntry().Name) ;

Its not interesting to answer my own questions

Regards
Ganesh
 
Old October 7th, 2004, 12:58 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Is there any method to get a hierarchical list of Organizational Units in an Active Direcory?

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01:26 AM
Active Directory - help! bubmachine General .NET 2 August 3rd, 2004 04:45 PM
About Active Directory apalmero VS.NET 2002/2003 1 November 9th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.