Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?



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

.



Relevant Pages

  • Re: How to display the "Access Denied" page directly without the a
    ... authentication on whatever the link is pointing to. ... 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 ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Authentication login screen appears on both frames of the framset
    ... wouldn't be redirecting to the login. ... give all users permission to the page that shouldn't redirect, ... >> If you're using forms authentication when a user is not authorized to see ... >> page they are automatically redirected to the login page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?
    ... My IIS only has the Integrated Windows Authentication toggled. ... 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 ...
    (microsoft.public.sharepoint.portalserver)
  • Re: How to display the "Access Denied" page directly without the a
    ... My IIS only has the Integrated Windows Authentication toggled. ... 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 ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Authentication in sharepoint Portal
    ... If you can use Integrated Authentication it should automatically log you ... SPS V2 does not allow for forms authentication. ... I am new to sharepoint portal server. ... As i aware sharepoint authenticates users based on AD (Windows Login). ...
    (microsoft.public.sharepoint.portalserver.development)