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

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


Date: 13 Feb 2004 03:52:24 -0800

Thanks for this suggestion, that was
what I tried so far:

Put the files in a folder upper the docroot of the website itself so that
they can't be accessed over HTTP and
read data with System.IO to send them with octed stream over
a download page.

Thought there was another way like the idea I had before in this thread.

But I can live with this one :)

Thanks & regards

Martin Strojek
martin@strojek.de

"John Oakes" <john@networkproductions.net> wrote in message news:<ehVChvf8DHA.3704@tk2msftngp13.phx.gbl>...
> I usually do a binary send to send files to users with permissions. This
> way you can store the files in a protected folder that none of the users can
> access directly, but your webapp can stream them to users with correct
> permissions.
>
> -John Oakes
>
> "Martin Strojek" <martin@strojek.de> wrote in message
> news:60c8cd62.0402110828.1c5fa305@posting.google.com...
> > 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

  • Re: Protected "Program Files"
    ... >>network. ... How can I access the programs and files in this folder. ... >That should read "Program Files" is the only protected folder on my computer ... Please post any reply as a follow-up message in the news group ...
    (microsoft.public.windowsxp.network_web)
  • Re: Impersonate and shared hosting
    ... Your suggestion means to give the unique pass (folder access) to visitors. ... *another* security account that gives acces to a protected folder. ... register, using authentification. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Folder Permissions Changed After Moving to a New Location
    ... ex-employee's folder and moved it into a subfolder of her protected folder. ... The folder was initially setup to inherit permissions from the top level of ... created under a folder that is restricted to my boss and the administrator. ...
    (microsoft.public.windows.server.general)
  • Re: Restore
    ... Daj wrote: ... protected folder 'System Volume information' on ... into trouble, disable it, reboot, delete *all* the files in that folder ...
    (microsoft.public.windowsxp.general)
  • Re: Found it - Lost my quick launch
    ... Since the copied folder structure was incomplete, ... >>> What were the local admin tasks??? ... >>> admin login, just not for mine, it would seem to me that it would be an ... >>>> Quick Launch: Gives error message, ...
    (microsoft.public.windowsxp.general)