I am trying to access a Rackspace-hosted SharePoint 2013 Demo site via CMIS.
Unfortunately, I get this error:
I am sure the CMIS URL is correct, because I receive an
app:service XML file when I connect with this URL/user/password via a web browser.
I tried all 3
Binding options, no luck.
I can access the SharePoint web UI normally.
Sounds dumb, but maybe a human user is required to log in manually via the web interface before the CMIS endpoint is accessible to this session? Demonstration:
(1) Try to log in via
$ curl -u MyCorp.firstname.lastname@example.org:mypass https://mycorp.raxsp.com/personal/mycorp_user1/_vti_bin/cmis/rest?getRepositories 403 FORBIDDEN
(2) Try to log in via
- Type URL
- I am immediately redirected to an HTML page with a big red
Sign In to SharePointbutton.
- When I click on the button, a browser dialog appears, saying
The server https://mycorp.raxsp.com:443 requires a username and password
- When I enter username/password and press Enter, the
restfile is finally downloaded. I am happy, but the human step is a problem, CMIS is for scripts, not for humans.
(3) Trying the link behind the big red button with
$ curl -u MyCorp.email@example.com:mypass https://mycorp.raxsp.com/_windows/default.aspx?ReturnUrl=/personal/mycorp_user1/_vti_bin/cmis/rest?getRepositories
Result: SharePoint error page saying:
Access is denied. Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.
So, how to get rid of this human step, and let a tool/script access the CMIS endpoint?