Home All Groups Group Topic Archive Search About

Skeleton Active Directory Interface Code (VB.Net)

Author
7 Mar 2007 8:04 AM
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!

Author
8 Mar 2007 6:12 AM
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
Author
8 Mar 2007 12:27 PM
Brandon_Thinkpad
I can throw down for that book for sure, thanks for the push in the
right direction!

On Mar 8, 1:12 am, Marc Scheuner <no.s***@for.me> wrote:
Show quote
> >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/...
>
> 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-Deve...
>
> Cheers!
> Marc

AddThis Social Bookmark Button