For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > July 2007 > Authentication using Active Directory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Authentication using Active Directory
GaryDean

2007-07-31, 7:12 pm

Are there any actual examples on how to authenticate against Active
Directory using DirectoryServices? I've combed the docs but haven't found
much in the way of examples.

I found....
Imports System.DirectoryServices
Dim myDirectoryEntry As DirectoryEntry
myDirectoryEntry = New DirectoryEntry("LDAP://...")

but that's about it.


--
Regards,
Gary Blakely


Jim in Arizona

2007-07-31, 7:12 pm

GaryDean wrote:
> Are there any actual examples on how to authenticate against Active
> Directory using DirectoryServices? I've combed the docs but haven't found
> much in the way of examples.
>
> I found....
> Imports System.DirectoryServices
> Dim myDirectoryEntry As DirectoryEntry
> myDirectoryEntry = New DirectoryEntry("LDAP://...")
>
> but that's about it.
>



At one time, I had planned on doing some stuff with AD more than just
extracting the user's logon from the servervariables object. I looked
around and didn't find much either but here's the links to what little I
did find on the subject. Goodluck.

http://msdn.microsoft.com/library/d.../sds/portal.asp
http://www.codeproject.com/vb/net/A...ry_Group_VB.asp
http://www.codeproject.com/aspnet/adsi1.asp
http://www.codeproject.com/aspnet/adsi2.asp
http://www.codeproject.com/cs/system/everythingInAD.asp

Jim in Arizona

2007-07-31, 7:12 pm

GaryDean wrote:
> Are there any actual examples on how to authenticate against Active
> Directory using DirectoryServices? I've combed the docs but haven't found
> much in the way of examples.
>
> I found....
> Imports System.DirectoryServices
> Dim myDirectoryEntry As DirectoryEntry
> myDirectoryEntry = New DirectoryEntry("LDAP://...")
>
> but that's about it.
>


OH yea. I forgot to mention another option. If you go to Google code
search and type in System.DirectoryServices you'll get some code samples
that may also help you.

http://www.google.com/codesearch?q=...tnG=Search+Code
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com