Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Simple website with open and restricted area

Reply
Thread Tools

Simple website with open and restricted area

 
 
Magnus Blomberg
Guest
Posts: n/a
 
      02-20-2006
Hi!

I am trying to write a simple public web application (internet) where the
root is public (anonymous) and where I have a subfolder called admin where a
few aspx-pages should be restricted to one user.

In dotnet 1.1 (or was it 2.0 beta) I had this funcionality using
Authentication mode set to Windows. Isn't this possible for dotnet 2.0? I
just want one login account to use the site, so I don't think I want to use
forms authentication to set up a login page (or is this made in 30 minutes),
and account administration page. Or could you add forms users via an
existing interface?

My current web.config in the admin subfolder looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<allow users="MIKLA\MegaphoneAdmin" />
<deny users="*" />
</authorization>
</system.web>
</configuration>

Could anyone help me to accomplish this?!?!?
Regards Magnus



 
Reply With Quote
 
 
 
 
MikeS
Guest
Posts: n/a
 
      02-20-2006
What is not working with this approach?

 
Reply With Quote
 
 
 
 
Henning Krause [MVP]
Guest
Posts: n/a
 
      02-21-2006
Hello Magnus,

the windows authentication approach just works as in 1.1: Set the
authentication tag to "Windows", and enable Windows-Authentication and/or
basic authentication in IIS.

Greetings,
Henning

"Magnus Blomberg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi!
>
> I am trying to write a simple public web application (internet) where the
> root is public (anonymous) and where I have a subfolder called admin where
> a
> few aspx-pages should be restricted to one user.
>
> In dotnet 1.1 (or was it 2.0 beta) I had this funcionality using
> Authentication mode set to Windows. Isn't this possible for dotnet 2.0? I
> just want one login account to use the site, so I don't think I want to
> use
> forms authentication to set up a login page (or is this made in 30
> minutes),
> and account administration page. Or could you add forms users via an
> existing interface?
>
> My current web.config in the admin subfolder looks like this:
> <?xml version="1.0" encoding="utf-8"?>
> <configuration
> xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
> <system.web>
> <authorization>
> <allow users="MIKLA\MegaphoneAdmin" />
> <deny users="*" />
> </authorization>
> </system.web>
> </configuration>
>
> Could anyone help me to accomplish this?!?!?
> Regards Magnus
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
website restricted to fixed public IP or to only PC wth predefined configuration Kausar Parveen ASP .Net Security 4 05-31-2006 05:49 AM
Open restricted files from Eclipse bobrics@gmail.com Java 0 02-27-2006 02:56 AM
Simple website with open and restricted area Magnus Blomberg ASP .Net 0 02-20-2006 05:21 PM
Add point to graphics area without having to paint the whole area? Mark Java 1 06-27-2005 03:09 AM
Problem getting javascript code working on js restricted website Richard Silverstein Javascript 0 09-18-2003 05:09 AM



Advertisments