473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Web.Config Block Certain Problem


I am trying to permit directory access for one single
user only and local Administrators. Right now the
current web.config code blocks everyone.

User TESTDOM2\testusr1 is a member of TESTDOM2\group1.

How can I fix this?

<location path="utility">
<system.web>
<authorization>
<allow users="TESTDOM2\testusr1" />
<allow users="BUILTIN\administrators" />
<deny users="*" />
<deny users="?, TESTDOM2\group1" />
</authorization>
</system.web>
</location>


Thanks.
Nov 19 '05 #1
2 1031
Hi xenophon,

Thanks for your post.

Can you show us which authentication mode you used in IIS? I suspect you
uses Windows Integrated Authentication in IIS.

Currently, for your web.config setting, I can not see big problem with it.
Your setting semantics should be corrently.(However, I think the last
element <deny users="?, TESTDOM2\group1" /> will be of no use, and can be
give off)

I think we should first check if the client request has been correct
authenticated as the domain account(TESTDOM2\testusr1). To check this, I
suggest you uncheck the anonymous and windows integrated authentication in
IIS, only apply the basic authentication, then we can explicitly do the
authentication with our need.

For more information about IIS authentication suggested troubleshooting
steps, please refer to "IIS Authentication Issues" section in the article
below:
"Building Secure ASP.NET Applications: Authentication, Authorization, and
Secure Communication"
http://msdn.microsoft.com/library/de...us/dnnetsec/ht
ml/SecNetch13.asp

Also, we can first disable the web.config settings, then in the requested
page, just use the code listed in "Determining Identity in a Web Page"
section in the above link to determine the authenticated request identity.

Once we can determine our request is correctly authenticated and
impersonated as "TESTDOM2\testusr1", this problem should go away.

I will wait for your further feedback. Thanks
================================================== =============
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 19 '05 #2
Hi xenophon,

Does my reply make sense to you? Is your problem resolved? Please feel free
to feedback, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 19 '05 #3

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

Similar topics

0
by: Mike | last post by:
Hi I am using one of the Microsoft building blocks called User Interface Process what this block basically does it control the flow/state of your application. This block works great with...
0
by: Mike | last post by:
Hi I am using one of the Microsoft building blocks called User Interface Process what this block basically does it control the flow/state of your application. This block works great with...
5
by: AAguiar | last post by:
I have an asp.net project where the code behind the aspx page calls a c# class which makes calls to a managed static C++ class. The C# class works fine when the asp net worker process starts, when...
1
by: djpaul | last post by:
Hello, I know this is not the right place to post this question but I am using a system called Envox. It's for telephony applications. But in this system is an block called smtpSend. Now i can...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.