crowd - apache http server authentication integration problem
Asked by YieldrD:

Hi,

I would like to use crowd as authenticaiton backend server integrating with apache http server as http authenticaiton mechanishm. I've followed document below;

[](https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Apache)<https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Apache>

I'm getting this error;

\[error\] CrowdAuth: Failed to authenticate application.

- configuration;

```
&lt;Directory "/var/www/"&gt;  AuthName crowd  AuthType Basic  PerlAuthenHandler Apache::CrowdAuth  PerlSetVar CrowdAppName XXX  PerlSetVar CrowdAppPassword XXX  PerlSetVar CrowdSOAPURL http://crowd.domain.com:8095/crowd/services/SecurityServer  PerlSetVar CrowdCacheEnabled on  PerlSetVar CrowdCacheLocation /tmp/CrowdAuth  PerlSetVar CrowdCacheExpiry 300  require valid-user&lt;/Directory&gt;
```

what did i check;

- application name and password correct, i also try with another application name and password it works with restfull api.

- i have checked remote ip configuration, i'm sure i added server's real external ip.

- i got tcpdump on the crowd server, it's below;

```
09:56:22.769876 IP xx.54627 &gt; crowd.xxx.com.8095: Flags [P.], seq 2995895305:2995896539, ack 2611274641, win 281, options [nop,nop,TS val 254446793 ecr 3787739752], length 1234E...0.@.;...6H..6"..c.....      ........+.......*....RhPOST /crowd/services/SecurityServer HTTP/1.1TE: deflate,gzip;q=0.3Connection: TE, closeAccept: text/xmlAccept: multipart/*Accept: application/soapHost: crowd.domain.com:8095User-Agent: SOAP::Lite/Perl/0.714Content-Length: 933Content-Type: text/xml; charset=utf-8SOAPAction: ""&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;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/"&gt;  &lt;soap:Body&gt;    &lt;namesp1:authenticateApplication xmlns:namesp1="urn:SecurityServer"&gt;      &lt;in0&gt;        &lt;credential xmlns="http://authentication.integration.crowd.atlassian.com"&gt;          &lt;credential xsi:type="xsd:string"&gt;XXX&lt;/credential&gt;        &lt;/credential&gt;        &lt;name xmlns="http://authentication.integration.crowd.atlassian.com" xsi:type="xsd:string"&gt;XXX&lt;/name&gt;        &lt;validationFactors xmlns="http://authentication.integration.crowd.atlassian.com" xsi:nil="true" /&gt;              &lt;/in0&gt;    &lt;/namesp1:authenticateApplication&gt;  &lt;/soap:Body&gt;&lt;/soap:Envelope&gt;
```

- at the crowd server, the application is active.

- crowd url is correct, when i try with with curl, it works;

[](http://crowd.domain.com:8095/crowd/services/SecurityServer)<http://crowd.domain.com:8095/crowd/services/SecurityServer>

\[Invalid SOAP request.\]

Could anyone help me to solve the problem.

Thanks.


Answers:
author: Tiago Comasseto
body: I see your Apache settings are a bit differente than the example in our site, have you tried with the example configuration in [step 4](https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Apache#IntegratingCrowdwithApache-Step4.ConfiguringAuthentication)?

```
&lt;Directory "/var/mysite/"&gt;...  AuthName "Atlassian Crowd"  AuthType Basic  AuthBasicProvider crowd   CrowdAppName myappname  CrowdAppPassword mypassword  CrowdURL http://localhost:8095/crowd/   Require valid-user...&lt;/Directory&gt;
```

Cheers

comments: author: YieldrD
body: The configuration that you referred is for the 2.x version of Crowd-Apache Connector and it doesn't support ubuntu 12.04. As document says, i've used Crowd-Apache 1.4 Connector, documanted below;

[](https://confluence.atlassian.com/display/CROWD020/Integrating+Crowd+with+Apache)<https://confluence.atlassian.com/display/CROWD020/Integrating+Crowd+with+Apache>

Am i wrong?

> <br />
>
> "This document is for the 2.x version of Crowd-Apache Connector, if you can't find an compatible version of the 2.x Subversion Connector for your O/S in the table below then refer to the [1.4 version](https://confluence.atlassian.com/display/CROWD020/Integrating+Crowd+with+Apache) of the Crowd-Apache Connector."


author: Tiago Comasseto
body: I'm pretty sure I've tested apache connector 2.0 with newer versions of Ubuntu, I believe our docs are outdated. I've opened this request to review this information: <https://jira.atlassian.com/browse/CWD-3963>

In the meantime, if you have a test server, you may want to test apache connector 2.0.

Cheers


author: YieldrD
body: Thank you Tiago. Using documentation i've easily configured 2.0.

Cheers.


author: Tiago Comasseto
body: I'm glad to hear that, if you thing this question was answered satisfactorily, you may accept the answer, this will increase its visibility and may help others in the future.

Cheers  


Tags: crowd-administration