473,508 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Authentication using Active Directory

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
Jul 31 '07 #1
2 1266
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/de...sds/portal.asp
http://www.codeproject.com/vb/net/Ac...y_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

Jul 31 '07 #2
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=S...nG=Search+Code
Jul 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1735
by: Srinivas | last post by:
Hi, I've one system in which Active directory is installed. That system is the domain controller as well as web server - A test machine. Trying all following to Authenticate Users using VB as...
1
1631
by: naijacoder naijacoder | last post by:
Hi Everyone, I have some Questions relating to Active Directory and Asp.net. 1)I have created a role based authorisation using SQL Server but i want to use Active Directory as a datastore now?...
0
8999
by: David Moore | last post by:
Hello I posted a thread about this a while back, but I can't actually find it again so I can reply to it with the solution I found, so I'm making a new thread and hoping it goes to the top of...
7
1696
by: - Steve - | last post by:
I have forms based authentication working, using my Active Directory for authentication. I have a web page that creates a user in active directory. When I was using IIS authentication it worked...
4
6791
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
10
4032
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
1
2651
by: Luwk | last post by:
I have an application that communicates with the Company's Active Directory to get the OU of the users. This said application is an ASP.Net web site and has the Windows Authentication enabled. ....
18
3385
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
8
1770
by: GaryDean | last post by:
I have a client with a need for multiple app authentication. The apps are all asp.net apps but may be on different servers. The user just wants a single logon and them be free to use five or six...
0
13813
JamieHowarth0
by: JamieHowarth0 | last post by:
I have been trying to find a solution to this on the Internet for months. Literally, ages and ages and ages, praying that someone in the open-source community has enough knowledge to put together an...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.