RE: strange security role issue
- From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
- Date: Mon, 10 Mar 2008 03:38:23 GMT
Hi Jrl,
As for the CreateUserWizard, I think you can consider using the following
means to add the additional task:
The CreateUserWizard control has some events such as "CreatingUser" ,
"CreatedUser". The "CreatedUser" event fires after the user has been
successfully created. Therefore, you can consider doing the email sending
or other post-tasks there. Also, you can test to see whether the "Username"
property of the CreateUserWizard is still available there, if not, you may
need to store the username in "CreatingUser" event or some other earlier
place
For the security trimming, based on my experience, such navigation/access
rule mismatch problem is often cased by incorrect role authroization
setting. What's your current <authorization> setting ?
According to the security-trimming reference, there are two things that
will control whether a certain navigation item(node in treeview or item in
menu) will display to the cerrtain user:
**the url/file authorization rule (can be set through <authorization>
setting)
** the "roles" attribute in sitemap config file
first, ASP.NET will use authorization setting to determine the visiblility
of a certain node. And if you have "roles" attribute set in SiteMapNode,
runtime will check it to see whether any extra users are allowed to see the
certain node(url...).
#ASP.NET Site-Map Security Trimming
http://msdn2.microsoft.com/en-us/library/ms178428.aspx
You can check your application's setting according to the above info to see
whether there is any rule setting that cause this problem.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
at: msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response
from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take
approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump
analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
X-Trace-PostClient-IP: 70.67.40.71
From: "jrl" <jrl@xxxxxxxxxxxxxxxx>
Newsgroups: microsoft.public.vsnet.general
Subject: strange security role issue
a
I have a (development) website, where I have used role based security, and
sitemap with SecurityTrimingEnabled as True. In this situation, I haveinto
sections of the site which are accessible or not, depending on the role a
user is in.
I use the create user wizard to allow an internet visitor to create a user
account. The wizard works fine, but how can I put an extra little task
the wizard's process? I'd like the wizard to send the administrator an(I
email, to alert that there is a new user, who needs to have the role set.
can handle the email part, but I don't know where to call this extra task,a
within the wizard's sequence) This is the first part of the question.
The second part, is that I've noticed a strange behavior in the role that
newly created user gets. When I view the new user roles in the Web Site
Administration tool, it says that the user does not belong to any roles.
This is what I expect. However, when I log in as that new user (with no
roles) I find that I have access to the whole navigation tree. Since
securitytriming is enabled, I should only be able to see areas of the site
that are visible to all. Instead, I can see areas that are normally only
visible to the administrator role users. This is obviously very bad!
How can I ensure the role that new users get when the wizard creates the
user? Is there a step needed to define their role, or why is their unset
role allowing them to see administrator content?
.
- Follow-Ups:
- Re: strange security role issue
- From: jrl
- Re: strange security role issue
- References:
- strange security role issue
- From: jrl
- strange security role issue
- Prev by Date: Re: calling style sheets
- Next by Date: Re: can I define custom colors?
- Previous by thread: strange security role issue
- Next by thread: Re: strange security role issue
- Index(es):