Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > forms authentication and wildcard mappings on UNC share

Reply
Thread Tools

forms authentication and wildcard mappings on UNC share

 
 
Fabrizio Cipriani
Guest
Posts: n/a
 
      05-09-2007
I am trying to configure a UNC share where to put the files, since my
application is load balanced on a web cluster. I have configured the
application with forms authentication.

When I try to access files in the UNC share, the login form doesn't pop up.
I have also written a simple httphandler for testing purposes, but it isn't
invoked on the UNC share, while it is invoked for files in the application
root directory.

- The UNC share is defined as a virtual directory under the application root.
- I CAN open the files in the UNC share, it's just the authentication the
doesn't work

web.config in application root:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<system.web>
<httpHandlers>
<add verb="*" path="*.txt"
type="SecurityHttpHandler"/>
</httpHandlers>
<compilation debug="true" strict="false" explicit="true"/>
<authentication mode="Forms">
<forms name="appNameAuth" loginUrl="/dotnettest/login.aspx" protection="All"
/>
</authentication>
<identity impersonate="true" userName="rightname"
password="rightpassword"/>
</system.web>
</configuration>

web.config in UNC share:
<?xml version="1.0"?>
<configuration>
<connectionStrings/>
<location path="accesstest.txt">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>

When i try to access "accesstest.txt" authentication doesnt' kick in.

Thanks in advance,
Fabrizio Cipriani





 
Reply With Quote
 
 
 
 
Fabrizio Cipriani
Guest
Posts: n/a
 
      05-17-2007
just to keep this thread updated: creating another virtual directory
connected to the same UNC share did solve the problem.

I still have my old virtual dir with nothing different from the new one
except the name, but the old won't work, the new one will (authentication,
login.aspx, httphandler, everything is correctly invoked).

I'll keep the post updated, should I ever find the reason why.
f.c.

"Fabrizio Cipriani" wrote:

> I am trying to configure a UNC share where to put the files, since my
> application is load balanced on a web cluster. I have configured the
> application with forms authentication.
>
> When I try to access files in the UNC share, the login form doesn't pop up.
> I have also written a simple httphandler for testing purposes, but it isn't
> invoked on the UNC share, while it is invoked for files in the application
> root directory.
>
> - The UNC share is defined as a virtual directory under the application root.
> - I CAN open the files in the UNC share, it's just the authentication the
> doesn't work
>
> web.config in application root:
> <?xml version="1.0"?>
> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
> <appSettings/>
> <system.web>
> <httpHandlers>
> <add verb="*" path="*.txt"
> type="SecurityHttpHandler"/>
> </httpHandlers>
> <compilation debug="true" strict="false" explicit="true"/>
> <authentication mode="Forms">
> <forms name="appNameAuth" loginUrl="/dotnettest/login.aspx" protection="All"
> />
> </authentication>
> <identity impersonate="true" userName="rightname"
> password="rightpassword"/>
> </system.web>
> </configuration>
>
> web.config in UNC share:
> <?xml version="1.0"?>
> <configuration>
> <connectionStrings/>
> <location path="accesstest.txt">
> <system.web>
> <authorization>
> <deny users="?"/>
> <allow users="*"/>
> </authorization>
> </system.web>
> </location>
> </configuration>
>
> When i try to access "accesstest.txt" authentication doesnt' kick in.
>
> Thanks in advance,
> Fabrizio Cipriani
>
>
>
>
>

 
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
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Redirects with ASP.NET 2.0 and wildcard mappings SlimFlem ASP .Net 7 12-22-2005 09:26 PM
Wildcard application Mappings disable default documents Tiziana Loporchio MCSD.NET ASP .Net 0 10-12-2005 03:49 PM
wildcard mappings/httpmodule/asp.net 2.0/iis6 =?Utf-8?B?QWRhbQ==?= ASP .Net 3 05-23-2005 01:14 AM
Lexar Card Reader Drive Mappings conflict with Network Mappings Eric Digital Photography 5 01-16-2004 05:02 PM



Advertisments