473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Validate Domain Username/Password Sample Code?

Does anyone have some sample code that can validate a domain username and
password account to check to see if it is a valid account?

Thanks in advance.

Scott
Nov 20 '05 #1
4 9032
Hi Scott,

I don't have sample code for you at the ready, but you may want to look into
Active Directory Application Mode (ADAM):

http://msdn.microsoft.com/library/de...ation_mode.asp

Hope this helps...
Eric

"Scott Lezberg (Deltek)" <sl******@ma.deltek.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Does anyone have some sample code that can validate a domain username and
password account to check to see if it is a valid account?

Thanks in advance.

Scott

Nov 20 '05 #2
Does that come with AD or is it a download from somewhere?

Derek
"Eric Lemmon" <E_********************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi Scott,

I don't have sample code for you at the ready, but you may want to look into Active Directory Application Mode (ADAM):

http://msdn.microsoft.com/library/de...ation_mode.asp
Hope this helps...
Eric

"Scott Lezberg (Deltek)" <sl******@ma.deltek.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Does anyone have some sample code that can validate a domain username and password account to check to see if it is a valid account?

Thanks in advance.

Scott


Nov 20 '05 #3
Hi Derek,

ADAM is part of the Microsoft Platform SDK. You can get it here:

http://msdn.microsoft.com/library/de...oolsanchor.asp

(It's my understanding that much of the same functionality is also found in
the System.DirectoryServices namespace.)

Here are a lot of good examples:

http://msdn.microsoft.com/library/de...t_tutorial.asp

Eric

"Derek Martin" <dm*****@DONTSPAMMEokstate.edu> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Does that come with AD or is it a download from somewhere?

Derek
"Eric Lemmon" <E_********************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi Scott,

I don't have sample code for you at the ready, but you may want to look

into
Active Directory Application Mode (ADAM):

http://msdn.microsoft.com/library/de...ation_mode.asp

Hope this helps...
Eric

"Scott Lezberg (Deltek)" <sl******@ma.deltek.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Does anyone have some sample code that can validate a domain username and password account to check to see if it is a valid account?

Thanks in advance.

Scott



Nov 20 '05 #4
On Wed, 19 May 2004 09:49:55 -0400, "Scott Lezberg \(Deltek\)" <sl******@ma.deltek.com> wrote:

¤ Does anyone have some sample code that can validate a domain username and
¤ password account to check to see if it is a valid account?
¤

See the IsAuthenticated function in the following MS KB article:

HOW TO: Authenticate against the Active Directory by Using Forms Authentication and Visual Basic
..NET
http://support.microsoft.com/default...&Product=vbNET
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #5

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

Similar topics

5
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
0
by: Paul Steele | last post by:
This isn't really a question on .NET, although it is network related. There doesn't seem to be a way in .NET to work with domains in any case. I am writing a C# program to automate the...
4
by: Paul Steele | last post by:
I'm writing a C# program that needs to validate an Active Directory username/password? The program will be running on a workstation that is not part of the domain. It doesn't have to do anything...
2
by: Steffen Balslev | last post by:
I tried to find a way to validate user credentials using C#, searching google and lots of other news and kb sites left me without a solution. You can use a SSPI but it's that easy to implement so...
7
by: Peter Steele | last post by:
I have code to add a domain user to a local group but I'm not sure if it will work with NT domains or whether it will only work with Active Directory based systems. Here's the code: public void...
0
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
1
by: Raghuram | last post by:
if i want to validate the LDAP user like i will provide him with the domain name but not the user name and pass when the user enters the user name and pass i should validate towards my domain, and...
3
by: Greg | last post by:
I am trying to figure out how to validate a userid against AD. At the time the user will be logged on as the local admin, right after puuling down a fresh image. the form asks for the userid and...
0
by: Speech Lover | last post by:
I am trying to find a sample from the Internet about invoking a command line from .NET 2.0 by using System.Diagnostics.Process with Domain, UserName and Password specified? All samples I found so...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.