PEAR Atlassian Crowd Service
You can also find this via PEAR: Services_Atlassian_Crowd
Source : http://forums.atlassian.com/thread.jspa?threadID=23857
Authors : kelvin & Paul Boyum & Marko Nordberg
We've been using Crowd as an authentication method for one of the PHP applications we use (SugarCRM) for a few weeks now. So far, it's been working really well for us.
I've attached a copy of the library we created as well as a file that shows how to use it. It doesn't implement the entire SOAP API, but the basic stuff is there. This was developed and tested on PHP 5.2.4.
Here is a dump of a working SOAP communication, if that is of any help:
POST http://localhost:8095/crowd/services/SecurityServer HTTP/1.1
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Content-Length: 942
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<namesp1:authenticateApplication xmlns:namesp1="urn:SecurityServer">
<in0>
<credential xmlns="http://authentication.integration.crowd.atlassian.com">
<credential xsi:type="xsd:string">perldemo</credential>
</credential>
<name xmlns="http://authentication.integration.crowd.atlassian.com" xsi:type="xsd:string">perldemo</name>
<validationFactors xmlns="http://authentication.integration.crowd.atlassian.com" xsi:nil="true" />
</in0>
</namesp1:authenticateApplication>
</soap:Body>
</soap:Envelope>
200 OK
Connection: close
Date: Wed, 20 Feb 2008 11:17:59 GMT
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Client-Date: Wed, 20 Feb 2008 11:17:59 GMT
Client-Peer: 127.0.0.1:8095
Client-Response-Num: 1
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><ns1:authenticateApplicationResponse xmlns:ns1="urn:SecurityServer"><ns1:out><name xmlns="http://authentication.integration.crowd.atlassian.com">perldemo</name><token xmlns="http://authentication.integration.crowd.atlassian.com">pf3RnniOucUA0owLo3tS5A00</token></ns1:out></ns1:authenticateApplicationResponse></soap:Body></soap:Envelop
e>