Search code examples
c#alfrescontlmcmisdotcmis

how to access Cmis without a password?


I'm trying to query Alfresco through cmis with DotCmis ( http://chemistry.apache.org/dotnet/dotcmis.html )

It's working ok as long as I specify a user / password.

How can I do that without specifying a password ? I'd like to use the CurrentIdentity or something but I can't...

parameters[SessionParameter.BindingType] = BindingType.AtomPub;
parameters[SessionParameter.AtomPubUrl] = "http://server/alfresco/service/cmis";
parameters[SessionParameter.User] = "user";
parameters[SessionParameter.Password] = "password";

Through the Apache documentation, it seems you can use a CmisBindingFactory for ntlm but dotCmis does not support it I think. I know nothing of java / apache so I'm awfully lost here.

Can it be achieved ? or is there any other library you may suggest ?

A real big thank you if you can help !!


Solution

  • I submitted a patch to DotCmis and now the latest build works with Ntlm. This was tested on my side on Alfresco.

    Sorry it took me too long to answer here.