(401)未经授权

编程入门 行业动态 更新时间:2024-10-07 06:49:38
(401)未经授权 - SharePoint 2013(Azure)和SharePoint Online之间的联合搜索((401) Unauthorized - Federated Search between SharePoint 2013 (Azure) and SharePoint Online)

我在SharePoint 2013 Azure和SharePoint之间实现联合搜索时遇到问题。

SharePoint 2013 Azure使用ADFS进行身份验证。 Azure活动目录和内部部署活动目录不同步。

我已按照以下两个链接中提到的所有步骤进行操作 -

https://technet.microsoft.com/EN-US/library/dn607307.aspx

https://technet.microsoft.com/en-us/library/dn197169.aspx

但是,当我尝试测试联合结果源时,我收到以下错误 -

Web error: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientContext

我不确定我们是否遗漏了technet链接中隐含或未提及的内容。

感谢有人可以帮助解决这个问题。

I am facing issue in implementing Federated Search between SharePoint 2013 Azure and SharePoint online.

SharePoint 2013 Azure uses ADFS for authentication. Azure active directory and on-premise active directories are not in sync though.

I have followed all the steps that have been mentioned in following two links –

https://technet.microsoft.com/EN-US/library/dn607307.aspx

https://technet.microsoft.com/en-us/library/dn197169.aspx

However when I am trying to test the Federated result source, I are getting following error –

Web error: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientContext

I am not sure if we are missing something which is implied or not mentioned in the technet links.

Grateful if someone can help in resolving this issue.

最满意答案

经过一个月的努力并获得微软的支持,我们已经解决了这个问题。 问题是变量$ spcn的值。

在文章中,不清楚它必须设置哪个域。

$spcn - The root domain name of your public domain. This value should not be in the form of a URL; it should be the domain name only, with no protocol. An example is adventureworks.com.

我们最初将其设置为SharePoint Online域。 经过大量的点击和试用,我们发现我们必须添加SharePoint Online和SharePoint 2013的域。之后它就可以工作了。

Finally after a month of effort and taking help of Microsoft support, we have resolved the issue. The problem was the value of variable $spcn.

In the article, it was not very clear to which domain it has to be set.

$spcn - The root domain name of your public domain. This value should not be in the form of a URL; it should be the domain name only, with no protocol. An example is adventureworks.com.

We were initially setting it to domain of SharePoint Online. Finally after lot of hit and trial, we found that we have to add domain of both SharePoint Online and SharePoint 2013. It worked after that.

更多推荐

本文发布于:2023-07-04 09:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1022326.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:未经授权

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!