Re: How to display the "Access Denied" page directly without the a
- From: Scott <Scott@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Dec 2006 17:54:00 -0800
Hi Tracy,
I am wondering if you found your answer yet? We have the same issue. I'll
add that there is also some sort of persistent connection from the
workstation back to WSS/SPSausing the popup. I deleted the saved newtork
connectins on the nethood directory in the users local profile and that
soleved this pop-up sometime. Other times it comes back again. Also there
is a connection with the IIS authentication which causes a WSS popup on web
parts such as page viewer will cause the popup if the user does not have
authentication on whatever the link is pointing to. I have not tested
inferior WSS permissions on the list level but will look into that.
Scott
"FreeOperator" wrote:
Hi Danne,.
Thanks for your reply.
My IIS only has the Integrated Windows Authentication toggled. When I
say "it is Shareponit's default behavior to pop up that login box
whenever user tries to access the sharepoint page to which he/she does
not the permission", I am referring to the Sharepoint access
permission. Will do more research on Google
Cheers,
Tracy
Danne wrote:
What is your default permission on the site in IIS? do you have both
anonymous access and integrated windows authentication? I usually gets
this behavior when installing a new portal but when all configuring is
done it's always gone, i can't point my finger on what exact
configuration does the trick but i could investigate a bit more when i
get back to the office:)
My tip is still that you concentrate on authentication to your website
rather then code.
If i'm totally out, please post your solution or mail it, a bit curious
on this one.
//D
FreeOperator skrev:
Hi Danne,
Thanks for your reply.
Yes, I have once tried adding the URL to the "Local Intranet" and the
"Trusted Site" zones but it did not work.
On the other hand, it is Shareponit's default behavior to pop up that
login box whenever user tries to access the sharepoint page to which
he/she does not the permission. This is by design and can be
overwritten programmatically by setting the
"CatchAccessDeiniedException" property of the site object to false. But
this does not seem to be a global switch (see my original post for
detail).
Cheers,
Tracy
Danne wrote:
Hi.
This actually sounds like a network login box from the way you
describes it.
Add the url to a safe or intranet zone and give it another try.
//D
FreeOperator skrev:
Dear all,
I have set up different access permissions for the form lists of our
Sharepoint site. When user with lower access permission tries to access
a form list requiring higher permission, Sharepoint will pop up that
annoying login box by default asking for username/password. It takes
user three attempts before that "Access Denied" page is displayed. Is
there a way to make Sharepoint display the "Access Denied" page
directly without popping up the login box at all? Any advice?
By the way, I tried to put a web part on the site home page and added
the following code for its "CreateChildControls" function. But it does
not work. Looks like this "CatchAccessDeniedException" property is not
a global switch.
protected override void CreateChildControls()
{
// Turn off the login dialog in case of authenticating error
if (SPControl.GetContextWeb(Context).Site.CatchAccessDeniedException)
SPControl.GetContextWeb(Context).Site.CatchAccessDeniedException =
false;
}
Thanks,
Tracy
- Prev by Date: I REALLY need a webpart that does this...
- Next by Date: Re: MOSS search issues
- Previous by thread: Re: How to display the "Access Denied" page directly without the a
- Next by thread: I REALLY need a webpart that does this...
- Index(es):
Relevant Pages
|