通过CMIS(dotCMIS)到SP2010连接:未经授权异常 [英] Connecting via CMIS (dotCMIS) to SP2010: exception unauthorised

查看:222
本文介绍了通过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 http://chemistry.apache.org/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] = "http://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问题,它( https://issues.apache.org/ 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 (https://issues.apache.org/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连接器:的 http://technet.microsoft.com/en-us/library/ff934619.aspx

PS: And yes, before I started with dotCMIS I did install and configure the MS CMIS connector: http://technet.microsoft.com/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 (http://mysharepoint) or the url to the cmis lib (http://mysharepoint/cmis) I need to point to the repository id, somehow the sp endpoint for CMIS is:

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

http://technet.microsoft.com/en-us/library/ ff934619.aspx

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

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

这篇关于通过CMIS(dotCMIS)到SP2010连接:未经授权异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆