Hi,
i defined a role ('manager') with one memberuser: Bob.
The website has a subdirectory called "allusers" which contains two pages:
allusers.aspx and manager.aspx.
The page allusers.aspx must be accessible by all users while the page
manager.aspx must be only accessible by members of the role manager.
The web.config of directory 'allusers' contains this:
<location path="manager.a spx">
<system.web>
<authorizatio n>
<deny users="*" />
<allow roles="manager" />
</authorization>
</system.web>
</location>
When logged via login.aspx, the user is redirected to a menu.apsx with a
hyperlink to manager.aspx.
When logged as Bob and clicking on the link to manager.aspx, i have no
access and i'm redirected to login.aspx.
Why?
I added in web.config this:
<allow users="Bob" />
but still no access !!!
What's wrong here?
Thanks
Chris 2 1108
For the sake of completeness, have you tried copying the string "manager"
from your web.config file and doing a IsUserInRole to verify that "Bob" or
whatever is, indeed, in the role? Perhaps do a redirect if he is and just
verify that you have things configured properly. http://msdn2.microsoft.com/en-us/lib...erinrole.aspxA
whole slew of weird things could be off somewhere.
--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Ben Rush
Microsoft .NET Consultant http://www.ben-rush.net/blog http://www.sideshowsystems.com
"Chris" <cc@dd.ddwrot e in message
news:%2******** *******@TK2MSFT NGP04.phx.gbl.. .
Hi,
i defined a role ('manager') with one memberuser: Bob.
The website has a subdirectory called "allusers" which contains two pages:
allusers.aspx and manager.aspx.
The page allusers.aspx must be accessible by all users while the page
manager.aspx must be only accessible by members of the role manager.
The web.config of directory 'allusers' contains this:
<location path="manager.a spx">
<system.web>
<authorizatio n>
<deny users="*" />
<allow roles="manager" />
</authorization>
</system.web>
</location>
When logged via login.aspx, the user is redirected to a menu.apsx with a
hyperlink to manager.aspx.
When logged as Bob and clicking on the link to manager.aspx, i have no
access and i'm redirected to login.aspx.
Why?
I added in web.config this:
<allow users="Bob" />
but still no access !!!
What's wrong here?
Thanks
Chris
thanks, but it just found it:
<deny=..must come after <allow ...>
...
"Ben Rush" <ben@sideshowsy stemsDOTcomschr eef in bericht
news:Oo******** ******@TK2MSFTN GP06.phx.gbl...
For the sake of completeness, have you tried copying the string "manager"
from your web.config file and doing a IsUserInRole to verify that "Bob" or
whatever is, indeed, in the role? Perhaps do a redirect if he is and just
verify that you have things configured properly. http://msdn2.microsoft.com/en-us/lib...erinrole.aspxA
whole slew of weird things could be off somewhere.
--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Ben Rush
Microsoft .NET Consultant http://www.ben-rush.net/blog http://www.sideshowsystems.com
"Chris" <cc@dd.ddwrot e in message
news:%2******** *******@TK2MSFT NGP04.phx.gbl.. .
>Hi,
i defined a role ('manager') with one memberuser: Bob. The website has a subdirectory called "allusers" which contains two pages: allusers.aspx and manager.aspx. The page allusers.aspx must be accessible by all users while the page manager.aspx must be only accessible by members of the role manager.
The web.config of directory 'allusers' contains this:
<location path="manager.a spx"> <system.web> <authorizatio n> <deny users="*" /> <allow roles="manager" /> </authorization> </system.web> </location>
When logged via login.aspx, the user is redirected to a menu.apsx with a hyperlink to manager.aspx. When logged as Bob and clicking on the link to manager.aspx, i have no access and i'm redirected to login.aspx. Why?
I added in web.config this:
<allow users="Bob" />
but still no access !!!
What's wrong here? Thanks Chris
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tjerk Wolterink |
last post by:
Hello i've an xpath problem using sablatron in php.
In xsl i have the following code:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:page="http://www.wolterinkwebdesign.com/xml/page"
xmlns:menu="http://www.wolterinkwebdesign.com/xml/menu"
xmlns:r="http://www.wolterinkwebdesign.com/xml/roles">
<xsl:param name="absolute_url"/>
|
by: waltborders |
last post by:
Hi,
Because the blind are unable to use a mouse, keyboard navigation is
key. A major difficulty is that not all windows forms controls are
keyboard 'tab-able' or 'arrow-able' or have "tab order".
The application is built and the next step is to create the custom JAWS
(Freedom Scientific)screen reader script to read the application. The
application uses the accessibility properties for controls provided by
C#. JAWS reads properties...
|
by: Darren Brook |
last post by:
Hi
I have an asp.net 2.0 project and am experiencing a problem.
In the project, I am trying to make use of Membership.
I have one Role, called "Basic User" and two users - "admin" and "test".
"admin" is a member of the Role but "test" is not.
|
by: Darren Brook |
last post by:
Hi
I have an asp.net 2.0 project and am experiencing a problem.
In the project, I am trying to make use of Membership.
I have one Role, called "Basic User" and two users - "admin" and "test".
"admin" is a member of the Role but "test" is not.
|
by: Darren Brook |
last post by:
Hi
I have an asp.net 2.0 project and am experiencing a problem.
In the project, I am trying to make use of Membership.
I have one Role, called "Basic User" and two users - "admin" and "test".
"admin" is a member of the Role but "test" is not.
| |
by: Darren Brook |
last post by:
Hi
I have an asp.net 2.0 project and am experiencing a problem.
In the project, I am trying to make use of Membership.
I have one Role, called "Basic User" and two users - "admin" and "test".
"admin" is a member of the Role but "test" is not.
|
by: dcharnigo |
last post by:
Here is my database layout:
Institution:
...inst_id
...inst_name
IsUser:
...user_id
...login
...Institution_inst_id
|
by: tom.hepworth |
last post by:
Hi
I have a problem which I hope someone can help me with because I
really don't even know where to start with it.
I am using Access 2003. I have a delimited text file which contains
about 200,000 lines. There are only 2 fields, Role and ID. The role
field contains many duplicates, out of the 200,000 records I think
there are only 16,000 unique roles.
Role ID
AB_F2S_COST_PLAN_CLK EE1
|
by: monty |
last post by:
Hi All,
I am facing a problem while executing a statement through C++ code
using OLEDB API of Sql server.
There is a problem with DB_OWNER role. If I will enable the DB_OWNER
everything is going fine but if I will remove this role than I am
getting error "DB_E_ERRORSINCOMMAND".
But if I will execute the same in query analyser it is going
absolutely fine in either case.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |