Is it possible to do Authentication with ASP.NET / C# over IIS ?

From: Martin Strojek (martin_at_strojek.de)
Date: 02/11/04


Date: 11 Feb 2004 08:28:29 -0800

Hi,

I try to solve a problem: Some folder on an IIS Webserver should be
protected with username and password. So I switched off anonymous
access and do Authentication. So far so good. But I want to have a SQL
database with the users which are allowed to login and just ONE System
account who is allowed to login to the protected folder. So what I
want to do is:
Make a login page and check Username and password against the entries
in the sql.
Not the problem but is it possible to do an authentication with the
script with the windows account after successful checking against the
sql user so that the script can send a http header with the file
location?

Step by step:
1. Login page
2. Check login against sql data
3. Store success and show filenames, click on a filename
3. Success -> Authenticate via script with windows user who has access
to the folder which is protected and contains the files.
4. Send header information with the filepath to download

For some suggestions I would be thankful

Regards
Martin Strojek
martin@strojek.de



Relevant Pages

  • SQL 2000 login problem
    ... I have a remote user that can login to SQL 2000 using ... the sa username and password, but cannot login with the username and ...
    (microsoft.public.sqlserver.security)
  • Re: how to create a gallery without using the EXIF function?
    ... >will have the same username as the user's login. ... >After login the user is taken to a page that will contain the 4 images ... >in the folder arranged in a table or div. ...
    (comp.lang.php)
  • Re: Delpoyment Issue
    ... you can attempt to call a stored procedure on the database. ... the connection string is wrong (username and password), ... and you know the login is invalid. ... I'm using is SQL 2000. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Copying Files to the Emulator
    ... The Pocket PC's File Explorer "open" command is asking for a username & ... username password, not a folder password. ... With Windows XP, you can enter the username of any user that has permission ... > when I login. ...
    (microsoft.public.pocketpc.developer)
  • Problem in LOGICAL THINKING
    ... When a user login with a wrong Password or USERNAME he have 5 logins to make this. ... $canlogin = TRUE; ... $sql = mysql_query; ...
    (alt.php)