473,611 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Allow anonymous access to subdirectory

Okay, so I thought this would be easy, but it's not turning out that
way. Let's see how good you guys are! :-)

I have a windows authentication-based Intranet application. An excerpt
from the web.config in the root of the application is as follows:

<authenticati on mode="Windows" />
<authorizatio n>
<allow roles="mydomain \Domain Users" />
<deny users="*" />
</authorization>
<roleManager enabled="true"
defaultProvider ="AspNetWindows TokenRoleProvid er"/>
<siteMap defaultProvider ="XmlSiteMapPro vider" enabled="true">
<providers>
<add name="XmlSiteMa pProvider" description="De fault SiteMap provider."
type="System.We b.XmlSiteMapPro vider" siteMapFile="We b.sitemap"
securityTrimmin gEnabled="true"/>
</providers>
</siteMap>
</system.web>
-----------------------------

Then in the /admin subdirectory, I have this:
<authorizatio n>
<allow roles="mydomain \Admins,mydomai n\Developers,my domain\Budget
Admins" />
<deny users="*" />
</authorization>
Then in the a subdirectory inside /admin I have /property which has no
web.config and then inside property I have a folder called /external.
I want to grant anonymous users access to this /external directory...
so I added the following web.config to the /external directory:

<authorizatio n>
<allow users="?" />
</authorization>
As for IIS, the root application authentication is integrated windows
authentication. Then for the external directory, I checked only
anonymous. This used to work in asp.net 1.x but now I'm using these
web.configs for security and it now prompts the user to log in.
However, if the user hits cancel, it shows the page. I just want to
prevent the login prompt from showing up.

Thanks in advance!

Jun 20 '06 #1
0 1605

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

Similar topics

2
3928
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company 1&1 with only limited server configuration via a web based control panel. My query relates to the ASP security model and how it relates to FrontPage options for setting file access on a database file. If you know of any online documentation...
1
2454
by: Kjell Kristiansson | last post by:
In developing a solution I ran into a problem where I have found no acceptable solution. The problem is combining users with anonymous login and users logged in to a domain in the same .aspx application. Here is some background: - the application will be accessable from the Internet, extranet and intranet. - no logon required but then you get limited information/functionality - if you'r not logged on you will be provided an option to...
3
7950
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else do I need to do?
4
2072
by: cashdeskmac | last post by:
Is it possible to allow only anonymous users access to the contents of a folder, rather than all users?
1
1242
by: AAOMTim | last post by:
I have a web project in which I would like to structure my top level directory to provide a user with anonymous access and a subdirectory for secure access that uses forms-based authentication. I'm under the impression that I need 2 web.config files: one in my top level directory for anonymous access and one in my underlying secure directory for authenticated access. Can anyone point e to some specific examples of how to do this, what...
1
2812
by: graphicsxp | last post by:
Hi, Until the user has logged on in the web app, the .css file is not found and is not applied to my identification form page :( I've allowed anonymous access to this css file in the web.config and now it works. But all of the images that are in a directory are not accessible either ! I'm not going to set anonymous access to all of them, that'd be too long. How can I set anonymous access to a directory in the web.config file ? Thanks
0
1540
by: =?Utf-8?B?Qm9ubmll?= | last post by:
I have a basic ASP / Index Server search page. I have a web site contained in a subdirectory in the root of a main web site. What I’m trying to do is force the search page in the subdirectory, conduct its search ONLY in the subdirectory, and NOT display results from the parent/root. (Note: there is also a similar search page for the main site, in the root, which I am having no problem excluding the subdirectory from its search results.) ...
4
2640
by: arggg | last post by:
I have disabled IWA as I want to handle the authentication my self. I have Allow Anonymous checked with the user IUSR_<MachineName> and unchecked IWA. It then says I do not have access when trying to access the aspx pages. If I enable IWA. It will prompt for login and will work. I do not want to prompt for login but only use my own login script. I have checked everywhere I can think of to make sure IUSR_ has permissions but cannot seem to...
7
1922
by: Fred | last post by:
I have a file (access.php) with the db username and pwd, which I include in every php file that needs db access. I'm not clear on how to set the path. I have an account on a shared *nix server, and this code will be in a subdomain (which is a subdirectory). Do I go upward with "../../access.php" or do I start with "/" and figure out where that actually is, then go downward?
0
8149
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8097
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8596
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8411
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7038
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.