Solved

Custom Access Denied Page with Login in Sharepoint 2010

Posted on 2011-03-01
5
769 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

26 Experts available now in Live!

Get 1:1 Help Now