Skeleton Active Directory Interface Code (VB.Net)

  • Thread starter Brandon_Thinkpad
  • Start date
B

Brandon_Thinkpad

Good morning everybody;

I'm looking to find some skeleton code, the bare minimum coding you
need to be able to access the Active Directory in Windows Server 2003,
using VB.Net code. What I really want to be able to do is check for
the presence of a username across an entire domain, in any
Organizational Unit, and return either a true or false value upon
finding it (or not finding it).

I have researched enough to discover that I need to import
System.DirectoryServices, but then what?

Again, just skeleton code would probably be enough to point me in
EXACTLY the right direction. Any assistance at all would be fantastic!
 
M

Marc Scheuner

I have researched enough to discover that I need to import
System.DirectoryServices, but then what?

First off - go to the S.DS portal on MSDN and read up on S.DS and
check out the plenty of VB.NET code samples they have there:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/portal.asp

Under the "Using S.DS" heading, there's a page called "Quick List for
Visual Basic.NET Code Examples" - check those out!

Next, I'd strongly recommend you get the excellent S.DS programming
book by Joe Kaplan / Ryan Dunn - they explain everything you'd ever
want and need to know about programming S.DS from .NET :

http://www.amazon.com/Developers-Directory-Programming-Microsoft-Development/dp/0321350170/

Cheers!
Marc
 
B

Brandon_Thinkpad

I can throw down for that book for sure, thanks for the push in the
right direction!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top