Solved

Custom Access Denied Page with Login in Sharepoint 2010

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 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