473,322 Members | 1,714 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,322 software developers and data experts.

Q: Using the "Windows" Authentication method in With ASP.NET 2.0

Hi!

I have been struggeling with this Windows, Authentication method for a
while, and i am beginning to give up.

So a couple of questions that you guys probably have the answer on.

1. One should add the user to the Active Directory, right?
2. Could i use the Login components to validate the user? (Studio 2005)
3. Do i have to specify every user in the Web.Config?

Finaly, perheps there is a link to a great site that explains it so even a
dummy like me would understand it :D

Regards
Martin
Nov 23 '05 #1
2 1240

Użytkownik "Visual Systems AB (Martin Arvidsson)"
<ma**************@vsab.net> napisał w wiadomo¶ci
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi!

I have been struggeling with this Windows, Authentication method for a
while, and i am beginning to give up.

So a couple of questions that you guys probably have the answer on.

1. One should add the user to the Active Directory, right?
you can log as an Active Directory user or as a machine user. remember to
turn off anonymous access in application's configuration and choose one of
three authentication methods (basic, ..., integrated).
2. Could i use the Login components to validate the user? (Studio 2005)
yes you can but I belive that you will have to write your own code that
validates user's credentials against the Active Directory in the
OnAuthenticate handler of the Login component.

below link will explain to you how to authenticate users against AD:
http://msdn.microsoft.com/library/en...l/secmod16.asp
3. Do i have to specify every user in the Web.Config?
no, you do not have to.
Finaly, perheps there is a link to a great site that explains it so even a
dummy like me would understand it :D


you could start with reading the free book "Building Secure ASP.NET
applications:
http://msdn.microsoft.com/library/de...l/secmod16.asp

regards,
Wiktor Zychla
Nov 23 '05 #2
Adding to Wiktor's advice with ASP.NET 2.0
try going through this blog at:-
http://blogs.msdn.com/gduthie/archiv...17/452905.aspx
Its much more easier now that v.1.1
So enjoy:)
Patrick

"Wiktor Zychla [C# MVP]" <wzychla_ii.uni.wroc.pl> wrote in message
news:#S**************@TK2MSFTNGP09.phx.gbl...

Użytkownik "Visual Systems AB (Martin Arvidsson)"
<ma**************@vsab.net> napisał w wiadomo¶ci
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi!

I have been struggeling with this Windows, Authentication method for a
while, and i am beginning to give up.

So a couple of questions that you guys probably have the answer on.

1. One should add the user to the Active Directory, right?
you can log as an Active Directory user or as a machine user. remember to
turn off anonymous access in application's configuration and choose one of
three authentication methods (basic, ..., integrated).
2. Could i use the Login components to validate the user? (Studio 2005)


yes you can but I belive that you will have to write your own code that
validates user's credentials against the Active Directory in the
OnAuthenticate handler of the Login component.

below link will explain to you how to authenticate users against AD:
http://msdn.microsoft.com/library/en...l/secmod16.asp
3. Do i have to specify every user in the Web.Config?


no, you do not have to.
Finaly, perheps there is a link to a great site that explains it so even a dummy like me would understand it :D


you could start with reading the free book "Building Secure ASP.NET
applications:

http://msdn.microsoft.com/library/de...us/secmod/html
/secmod16.asp
regards,
Wiktor Zychla

Nov 24 '05 #3

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

Similar topics

5
by: John | last post by:
I am creating an application that I would like to have the user type in their User ID, password and domain, and it do Windows Authentication to verify they are a valid user. Can someone provide...
3
by: Reza | last post by:
Hello I tried this friday, but didn't get anywhere so trying again Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the...
1
by: Marlon | last post by:
I got the error message below when I try to open a connection with code: Dim connection As New OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=C:\Inetpub\aesd")...
0
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, My ASP.net application uses Windows Authentication. When using Forms Authentication, if the session expires, the common thing to do is to redirect the user to the login page again. ...
3
by: ATS | last post by:
HOWTO Post to a URL from Server Side ASP script. Please help, I'm trying to make a simple ASP page post to a URL on a seperate web site, and then get the returned HTML into a string which on...
0
by: Pete | last post by:
I have a web asp.net 1.1 app that is using Windows Authentication on an Apache server. I cannot connect across the Intranet to another network even though there is a 'TRUST' setup between the...
0
by: Pete | last post by:
I am using windows authentication in Apache to access the web page - work Ok but I need to use this authentication, username and password to access an external network to get some data. How do I...
6
by: Matt Adamson | last post by:
Guys, I'm unsure how to use windows authentication in an intranet application. I'd like to user existing windows account to identify users however the issue I have is how to then add settings to...
3
by: =?Utf-8?B?QnJpYW4gTmljaG9sc29u?= | last post by:
I'm building a test web application that, when run, will launch calc.exe on my computer. It seems to work as it appears in Windows Task Manager; however, the process doesn't actually pop up...
2
by: fairbanj | last post by:
I am using Windows Authentication and I am trying to determine how to swap users (like when a supervisor needs to temporarily boost the priviledges of a session by logging into his own account and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.