Ask a Question related to ASP.NET Security, Design and Development.
-
Alioop via .NET 247 #1
Virtual Directory doesn't recognize auth ticket!
Someone, please help!
I have a website is using forms authentication. A user must beauthenticated to access any part of the website. This workscorrectly except in a subdirectory that is actually a virtualdirectory set up in IIS. Users can never correctly access thefiles in the virtual subdirectory, whether authenticated or not,so it seems as if the subdirectory doesn't recognize the authticket.
Here is my web.config file:
-------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<configuration><system.web>>
<pages enableViewState="false"/>
<compilation defaultLanguage="c#" debug="true" />
<customErrors mode="RemoteOnly" defaultRedirect="/error.aspx"/>
<!-- AUTHENTICATION -->
<authentication mode="Forms">
<forms name="ProtectMe"
loginUrl="/login.aspx"
protection="All"
timeout="60"
path="/"
slidingExpiration="true">
</forms>
</authentication>
<!-- AUTHORIZATION -->
<authorization>
<deny users="?" />
</authorization>
<!-- APPLICATION-LEVEL TRACE LOGGING -->
<trace enabled="false" requestLimit="10" pageOutput="false"traceMode="SortByTime" localOnly="true" />
<!-- SESSION STATE SETTINGS -->
<sessionState
mode="SQLServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=xxx;userid=xxx;password=xxx"
cookieless="false"
timeout="20"
/>
<!-- GLOBALIZATION -->
<globalization requestEncoding="utf-8"responseEncoding="utf-8" />
</system.web>
</configuration>
----------------------------------
If I add this to the web.config file, users can always get in.
<location path="vdocs">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
What I would like is for users to be allowed access only whenthey are authenticated, as with the rest of the site. Doesanyone have any tips?
I've also tried <deny users="?" />, <allow users="?" />, <denyusers="*" />
Any help is greatly appreciated.
-----------------------
Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
<Id>9RY45k2IEka7tYAdKrsfvA==</Id>
Alioop via .NET 247 Guest
-
virtual directory
Our corporate website uses coldfusion. We have developed a web time entry system that also uses coldfusion. I am trying to setup the new timentry... -
vHost - Virtual Directory
I'm trying to play videos using the flvplayer control and FMS. If I put my flv directly in the FMS applications/streams/_definst_ directory, and... -
Role Based Forms Auth with Active Directory
As anybody succesfully implemented a role/groups based forms authentication against the Active Directory? Thx Patrick *** Sent via... -
Windows Auth - Active Directory
Hello, I have a web application that uses windows authentication. All the users log in using an active directory account. When an authenticated... -
Have to Be A Virtual Directory?
I have a project named NET. It has .aspx and one .asmx files. This NET is a virtual directory and application in IIS: - All .aspx and one .asmx and...



Reply With Quote

