Problem when using 'sign in as a different user'.

Tzn
  • Problem when using 'sign in as a different user'. Tzn

    I have a standard website (one Web Application and one Site Collection) with some custom pages and webparts.

    The issue I'm having is that when I try to switch users, using the "Sign In As a Different User" and entering new credentials (even for another Site Collection admin account), IE tries the account three times, and then it presents a 401 Access Denied screen.

    After that, if I erase all the stuff of access denied page from the browser's url, I'm logged as the new account I just had entered and was not accepted.

    After researching for a while on google, I found a KB ( http://support.microsoft.com/kb/970814 ) that might relate, but just tested here and it didn't work at all.

    The modified method suggested by the KB is the following:

    function LoginAsAnother(url, bUseSource) 
    {
        document.cookie="loginAsDifferentAttemptCount=0";
    
        if (bUseSource=="1")
        {
             GoToPage(url);
        }
        else
        {
             //var ch=url.indexOf("?") >=0 ? "&" : "?";
             //url+=ch+"Source="+escapeProperly(window.location.href);
             //STSNavigate(url);
             document.execCommand("ClearAuthenticationCache"); 
        } 
    }
    

    But after making this change, it no longer asks for new credentials.

    Any ideas?

  • One of the first things I would do to troubleshoot is to use Fiddler (or other http traffic analyzer) to have a look at the http requests and responses before using the 'Sign in as.." and those after.

    It may not give you a direct answer, but by inspecting the headers for each successful request, and comparing with those that are failing with 401 responses, it may give a few clues as to what's going on.

Tags
2007 authentication
Related questions and answers
  • In some instances of WSS or MOSS when you use the "Sign in as Different User" option, the new login doesn't "take". Is there any known issue here? Usually logging out and then logging back in with the second user does work. This seems like a pretty big problem and I've seen it on and off over the years, mostly while testing with different identities. UPDATE 1: I'm seeing it in several hosted... even when the current SharePoint page is showing the prior user incorrectly. url: $().SPServices.SPGetCurrentSite() + "/_layouts/userdisp.aspx?Force=True&" + new Date().getTime(),

  • I'm trying to create a site collection via stsadm. I do: STSADM -o createsite ` -url "<url>" ` -title "<title>" ` -description "<desc>" ` -lcid 1033 ` -owneremail "<user email>" ` -sitetemplate "STS#1" ` -ownerlogin "<domain\user.name>" (Sidenote: I'm in Powershell with an alias set up for stsadm.) When I run the command... to contact the global catalog server If I create a site collection through Central Administration, using the same <domain\user.name> credentials, the site collection is created fine. Any ideas

  • infrastructure is not yet in place when this code is run. ORIGINAL QUESTION I have a custom site definition which is using an SPProvisioningProvider to configure the site collection. After calling...UPDATE Worth noting that this is only happening when the site definition is called from SPWebApplication.Sites.Add, if I use the UI then this works fine. My code is impersonating the system account... when I call this piece of code Dim pubSite As New PublishingSite(_siteColl) Dim pubWeb As PublishingWeb = PublishingWeb.GetPublishingWeb(site) Dim layouts() As PageLayout = Nothing layouts

  • and set Domain Users as Site Collection Members. When one of these users tries to take the survey, the see a list of questions up to the question with branching. After selecting their answers and clicking the "Next" button, they receive an Access Denied error. Thinking that the branching may have been causing an issue, I removed it. The users can now see the whole survey at one time, but when they try to submit their answers they still received the Access Denied error. I have tried sending an access request from a test user (as prompted by the error page), but I still received the same error

  • We recently migrated some applications from SharePoint 2007 to SharePoint 2010. The application uses the SiteData.asmx web service. After the migration there are Access Denied errors, withtout any additional information. The following sample code reproduces the problem: var service = new SiteData(); service.Url = url + "_vti_bin/sitedata.asmx"; string web;string site;string bucket;string list... does not work. (http://localhost/_vti_bin/listdata.svc/List hangs indefinitly) Livewriter can not connect to blog site opening office documents in edit mode gives access denied, but they can actually

  • , than store new row into another grid with all details Account, Email, REGION, Site/Sub-site URL, Site Name, Sub-site Name, Site owner and loops through whole html source, than it jump in loop to another... have list of sites and sub-sites with URL's. More details: Let me describe one solution I have now. I’ve found tool Data Juggler (http://www.djuggler.com/) which can automate repetitive web tasks... could be possibly omitted if I will tweak the script, but I made this solution in one night learning from examples and building script) After that it loads all the information from spreadsheet

  • I'm using Search Server Express + WSS 3.0. I wanna crawl external public web sites. One site is : http://www.av.se/ When I try a full crawl it is throwing: http://www.av.se Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. Local sites and other public sites are getting crawled OK. What is wrong with that sit? Can you add it on Content sources and try a full crawl for testing?

  • Using host file Loïc Wolff

    I created an application in SharePoint, lets call it http://example.com/ and a site collection with the "Empty Site" template. Since I'm using it locally in a virtual machine in host-only mode, I had to edit my host file to add 127.0.0.1 example.com Now, whenever I access this website, I cannot click on "Site Action". All it does is add a # at the end of the URL. Since I'm in a host-only VM, i cannot change the DNS to make it work (that's the way we fixed it for a dev server).

  • In line with Microsoft's recommendation to keep content databases on SharePoint 2007 under 100Gb, we often move site collections to different content databases to balance the load. However, we have noticed a problem - after we move the site collection to a new content database, the entries in the search index for everything in the site collection disappear. This seems strange as the paths... to be re-crawled in its new content database? We don't want to do a full crawl as the last one we did took more than eight days and in any case we would still have the same problem after the full crawl

Data information