RE: [PHP] SharePoint
| From: | Tommy Pham | Date: | Sat, 01 May 2010 15:32:56 +0000 |
| Subject: | RE: [PHP] SharePoint | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304809@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Robbert van Andel [mailto:swimmer1974@gmail.com]
> Sent: Friday, April 30, 2010 11:58 PM
> To: PHP list - not junk
> Subject: [PHP] SharePoint
>
> I've been trying to connect to our SharePoint server's webservices with
PHP.
> I downloaded the nusoap library and have been trying to make a connection
> using sample code from various websites. I keep getting the following
error:
>
> <h1>You are not authorized to view this page</h1> You do not have
> permission to view this directory or page using the credentials that you
> supplied because your Web browser is sending a WWW-Authenticate header
> field that the Web server is not configured to accept.
> <h2>HTTP Error 401.2 - Unauthorized: Access is denied due to server
> configuration.<br>Internet Information Services (IIS)</h2>
>
...
>
> Our SharePoint server uses integrated authentication. I've tried several
> permutations of the username, including just the username,
> domain\username and username@domain. All are returning the same error.
> My guess is that PHP is sending the username/password combination in a
> way that SharePoint doesn't like.
>
> Has anyone been able to connect to SharePoint's web services and if so,
> how?
>
> Thanks
>
Hi,
Is the SharePoint web app security configured as NTLM or Kerberos? I
presume the authentication type is Windows? Have you tried
http://user:password@domain.com/full/path/of/url?qryParam=value?
Regards,
Tommy