AnsweredAssumed Answered

PHP Library CMIS - User authentication ldap failed

Question asked by alessandro72 on Apr 29, 2015
I'm using the php CMSI to access alfresco but during login with LDAP, i recived this error

php -f cmis_ls.php http://10.10.0.43:8080/alfresco/api/cmis/versions/1.0/atom UtenteT UtenteT / 0

PHP Fatal error: Uncaught exception 'CmisRuntimeException' with message '{
"status" :
{
"code" : 401,
"name" : "Unauthorized",
"description" : "The request requires HTTP authentication."
},

"message" : "03260001 Authentication failed for Web Script org\/alfresco\/api\/opencmis\/OpenCMIS.get",
"exception" : "org.springframework.extensions.webscripts.WebScriptException - 03260001 Authentication failed for Web Script org\/alfresco\/api\/opencmis\/OpenCMIS.get",

"callstack" :
[
"" ,"org.springframework.extensions.webscripts.WebScriptException: 03260001 Authentication failed for Web Script org\/alfresco\/api\/opencmis\/OpenCMIS.get"
,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:403)"
,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:280)"
,"org.alfresco.rest.api.PublicApiRepositoryContainer.access$001(PublicApiRepositoryContainer.java:26)"
,"org.alfresco.rest.api.P in /var/www/html/sitetest/Alfresco_php/atom/cmis/cmis_repository_wrapper.php on line 176

The error message in the log is not too helpful (not for me at least) so it would be great to get some advice from experienced developers.
Thanks in advance,

Alessandro

Outcomes