Windows authentication - unable to allow access to folder to a user(s)

Hi,

I have an ASP.NET 2.0 application.  Web server (I have been informed) has Windows authentication enabled, and Anonymous access disabled.

Web.Config has the following:

 <authentication mode="Windows">      
    </authentication>
    <authorization>      
      <deny users="?"/>
    </authorization>    

I need to secure access to a folder so created a web.config folder and placed it in the folder itself (which I believe is one way to do it).

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
  <system.web>          
          <authorization>
           <allow users = "RD/MP9293Q"/>
            <deny users="*"/>            
          </authorization>      
    </system.web>
</configuration>

This is my domain and windows login.  I am now being prompted for credentials (which I dont want), but even when I enter my logon details - I cant get in.

What can I do?

Thanks


LVL 1
p_loveAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

YiogiCommented:
a) Make sure you use identity impersonate on your config file which I don't see there.
b) Check the actual file permissions on the folder. Make all children take the parent permissions, if you copied your files from another folder permissions would get scrambled.
0
p_loveAuthor Commented:
Hi,

What folder permissions do I need to assign?  Just the ASPNET user?  I dont want to have to set folder rights for every individual user do I?  Whats the logic in unsing impersonate?  Does this mean I have to set folder permissions on a user by user basis also?

Regards

p_love
0
vs1784Commented:
It should be

RD\MP9293Q

Instead of RD/MP9293Q

Thanks,
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

p_loveAuthor Commented:
DOHHHHHHHHHHHHHH!!

Thanks
0
YiogiCommented:
no you do not need to set them for every individual user. The ASPNET and maybe IIS_WPG should suffice. If you want I can check when I get back to work tomorrow as I did the same thing recently.
0
p_loveAuthor Commented:
As an aside (!), how can I redirect users to a page when they fail authentication rather than them being asked for credentials?
0
p_loveAuthor Commented:
Thanks

As an aside (!), how can I redirect users to a page when they fail authentication rather than them being asked for credentials?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.