Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 17th, 2006, 11:42 AM
Registered User
 
Join Date: Dec 2005
Location: Santa Fe, NM, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Windows Authentication in Web.Config

I'm hoping someone can help me...

I have an employee intranet with one folder I want to secure for admin staff only. I have tried: 1) to edit the web.config in the root and 2) create additional web.config in folder to be secured (and creating application for that folder in IIS). My problem is a little bizarre.

As long as the allow users for the admin folder is a single user, it works fine. When I add a second user or change the user to a windows group, it doesn't work. Can anyone help? Here is what I have in my web.config...

<configuration>
   <location path="Admin">
      <system.web>
         <authorization>
            <allow users="domain\group" />
            <deny users="*" />
         </authorization>
      </system.web>
   </location>

   <system.web>

      <compilation defaultLanguage="c#" debug="true" />

      <customErrors mode="RemoteOnly" />

      <authentication mode="Windows" />

      <authorization>
         <allow users="*" />
      </authorization>

And so on...
  #2 (permalink)  
Old February 5th, 2014, 08:42 PM
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

domain\group is not a user you allow roles
Code:
<configuration> 
   <location path="Admin">
      <system.web>
         <authorization>
            <allow roles="domain\group" />
            <deny users="*" />
         </authorization>
      </system.web>
   </location>
 


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 08:23 AM
Windows authentication eresina General .NET 5 June 2nd, 2004 10:16 AM
IIS config for authentication using AD MSUser General .NET 0 March 26th, 2004 04:18 AM
Web Service & Integrated Windows Authentication TiongLip ASP.NET 1.0 and 1.1 Professional 0 September 17th, 2003 02:47 AM



All times are GMT -4. The time now is 08:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.