472,954 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

ASP.NET and Active Directory

At the moment, we have a simple user id / password entry screen to login to
our website, the data credentials are held in our database.

We've now been asked to integrate with active directory so that users on the
lan who are already logged in via active directory no longer need to log
into the website, but automatically are logged in using their network userid
(which should match the old website login).

I can see how I could prompt for the userid / pwd again and interogate the
active directory to see if the user is valid, but how can I do it without
asking for the login info ?

Thanks
Adrian Parker
Nov 19 '05 #1
3 2593
Hi Adrian,

1) Turn the security of the web app to “Integrated Windows Authentication”
2) In the global.ascx, retrieve the userID from the Context.User.Identity.Name
3) Search the Active Directory for the user's information but notice that
you need to query the directory using a hard-coded user id if you are on Win
2000 or to turn on Kerberos authentication if you are on win server 2003
http://www.microsoft.com/windowsserv...s/default.mspx

You can search the adsi.general newsgroup for more details on making a query
to the Active Directory

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Adrian Parker" wrote:
At the moment, we have a simple user id / password entry screen to login to
our website, the data credentials are held in our database.

We've now been asked to integrate with active directory so that users on the
lan who are already logged in via active directory no longer need to log
into the website, but automatically are logged in using their network userid
(which should match the old website login).

I can see how I could prompt for the userid / pwd again and interogate the
active directory to see if the user is valid, but how can I do it without
asking for the login info ?

Thanks
Adrian Parker

Nov 19 '05 #2
WJ

"Adrian Parker" <ap******@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
We've now been asked to integrate with active directory so that users on
the lan who are already logged in via active directory no longer need to
log into the website, but automatically are logged in using their network
userid (which should match the old website login).


You will have to make your webserver (IIS) as "member" of the AD. This way,
when an AD client is successfully authenticated to the AD, s/he can use your
website without being prompted for AD credential again. You will have to
switch from anonymous to Integrated Windows in the IIS server. And if you
use MS/SQL, you will also need to use "Integrate Windows security option"
also to take advantage of the AD security system.

John
Nov 19 '05 #3
Thanks guys, that's given me somewhere to start!

Nov 19 '05 #4

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

Similar topics

2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
9
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
4
by: ASGMikeG | last post by:
Hi, How do I find the user object for the current user in Active Directory i.e. the user running my program ? Regards Michael
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
10
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...
0
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like:...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
1
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.