切换用户时,Sharepoint 最初不接受新凭证
我有一个标准网站(一个 Web 应用程序和一个网站集),其中包含一些自定义页面和 Web 部件。
我遇到的问题是,当我尝试切换用户、使用“以不同用户身份登录”并输入新凭据(即使是另一个网站集管理员帐户)时,IE 会尝试该帐户三次,然后显示401 访问被拒绝屏幕。
之后,如果我从浏览器的网址中删除访问拒绝页面的所有内容,我将被记录为我刚刚输入的新帐户,并且不被接受。
在谷歌上研究了一段时间后,我找到了一个知识库( http://support.microsoft.com/kb /970814 )可能会相关,但刚刚在这里测试过,它根本不起作用。
知识库建议的修改方法如下:
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");
}
}
但是进行此更改后,它不再要求新的凭据。
有什么想法吗?
I have a standard website (one webapplication 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 a new credential.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论