通过CMIS(dotCMIS)到SP2010连接:未经授权异常

编程入门 行业动态 更新时间:2024-10-07 08:25:57
本文介绍了通过CMIS(dotCMIS)到SP2010连接:未经授权异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用im dotCMIS,很想做一个简单的连接到我的服务器SP2010。我试着用C#这样做喜欢这里 HTTP://chemistry.apache。组织/ DOTNET /工具入门与 - dotcmis.html 在第一部分

Im using dotCMIS and would like to do a simple connect to my SP2010 server. Im trying to do this with C# like here chemistry.apache/dotnet/getting-started-with-dotcmis.html in the first part

所以我有这样的事情:

Dictionary<string, string> parameters = new Dictionary<string, string>(); parameters[SessionParameter.BindingType] = BindingType.AtomPub; parameters[SessionParameter.AtomPubUrl] = "mysharepoint"; parameters[SessionParameter.User] = "SPAdmin"; parameters[SessionParameter.Password] = "1234sharepoint"; SessionFactory factory = SessionFactory.NewInstance(); ISession session = factory.GetRepositories(parameters)[0].CreateSession(); //exception unathorized

不过,我总是得到异常: DotCMIS.Expcetions.CmisRunterimException:Unathorised

任何想法?通过浏览器,我可以登录使用相同的用户名/密码的网站,因此多数民众赞成可能是没问题的。起初我因子评分,因为NTLM问题,它( issues.apache/ JIRA /浏览/ CMIS-531 ),但即使进出口使用参数[SessionParameter.AuthenticationProviderClass] =DotCMIS.Binding.NtlmAuthenticationProvider; 其相同的异常。嗯...这个异常是不是真的帮助我。我希望我能得到更多的信息 - 也许有更好的办法?我还能尝试一下呢?谢谢!

Any ideas? Via browser I can login to the site with the same user/pass, so thats might be not the problem. At first I tought its because of the NTLM problem (issues.apache/jira/browse/CMIS-531) but even if Im using parameters[SessionParameter.AuthenticationProviderClass] = "DotCMIS.Binding.NtlmAuthenticationProvider"; its the same exception. And well... this exception is not really helping me. I wish I could get more information - maybe there is a better way? What else could I try? Thank you!

PS:是的,之前我开始与dotCMIS我没有安装和配置MS CMIS连接器:的 technet.microsoft/en-us/library/ff934619.aspx

PS: And yes, before I started with dotCMIS I did install and configure the MS CMIS connector: technet.microsoft/en-us/library/ff934619.aspx

推荐答案

是在AtomPubUrl是错误的。

Yes the AtomPubUrl was wrong.

对于SharePoint它不是足够发布默认SP URL(的http:// mysharepoint )或URL到CMIS LIB( HTTP: // mysharepoint / CMIS )我需要指出的存储库id,不知何故为CMIS SP的端点是:

For sharepoint its not enough to post the default sp url (mysharepoint) or the url to the cmis lib (mysharepoint/cmis) I need to point to the repository id, somehow the sp endpoint for CMIS is:

mysharepoint/_vti_bin/<myLib4CMIS>/<repID>?getRepositoryInfo

technet.microsoft/en-us/library/ ff934619.aspx

不知怎的,这是混乱的,但它的工作:) dotCMIS是非常好的。

Somehow it was confusing, but its working :) dotCMIS is really nice.

更多推荐

通过CMIS(dotCMIS)到SP2010连接:未经授权异常

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

发布评论

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

>www.elefans.com

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