Solved

Custom Access Denied Page with Login in Sharepoint 2010

Posted on 2011-03-01
5
766 Views
Last Modified: 2012-05-11
I'm working on an SBS 2008 box which has been upgraded to Sharepoint Foundation 2010. We have a couple of computers that are "kiosk" machines and are logged in with a domain account with very limited access. This does include some read access to certain parts of the sharepoint site. However, in order to contribute, especially to issue tracking areas of the site, I want the users to login using their own domain accounts.

So, I am looking for a way to simplify the process of prompting the user for login credentials whenever they try to access a part of the web that they do not have access to. Ideally, I would like to do a custom access denied page with a login form right on the page, as if the user had already clicked the "sign in as a different user" link. I would settle for the abiliy to customize the access denied page to give the user some specific direction and maybe change the hyperlink for signing is as a different user to a more predominant button, or something of that nature.

I have Sharepoint Designer 2010 installed and I am pretty comfortable using that, but I have EXTREMELY limited code experience. So, I would need some pretty specific direction if this will require custom code to be written.  

THanks in advance for any help.
0
Comment
Question by:bigintegration
  • 2
5 Comments
 
LVL 6

Expert Comment

by:psv1973
ID: 35009737
I might be wable to help you here.

Interesting idea.

When you login as a different user the system visits the following url.

http://yourhosturl/_layouts/closeConnection.aspx?loginasanotheruser=true&Source=http%3A%2F%2Fyourhosturl%2FLists%2FAList%2FAllItems%2Easpx

So all you will need to do is replace the access denied page with a redirect to the above url.
0
 
LVL 6

Expert Comment

by:psv1973
ID: 35009752
By the way you can probably scip the source= bit in the query string
0
 
LVL 1

Accepted Solution

by:
bigintegration earned 0 total points
ID: 35027240
Interesting it is :)

So, you do need the Source= bit because that tells Sharepoint where to re-direct to after the login.  Without it, it just goes into an infinite loop of redirects.

Replacing the access denied page with a re-direct is not going to work, then, because the link would need to be custom depending on which page was requested and subsequently denied.

However, you've brought me to another idea, which is to just give that Kiosk account "view" privledges, and then add a hyperlink to the bottom of the view page using the CEWP that sends them to the NewItem form using the link you suggested. In doing that I think I can allow them to look at "Issues" in the list under the generic login, but when they want to add one, force them to login with their domain account so we can track the authors. I'll try it and see if it works.
0
 
LVL 12

Expert Comment

by:Hairbrush
ID: 37693390
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now