From : http://forums.atlassian.com/thread.jspa?threadID=23732
Author : Marko Nordberg

Attached is a perl script login.cgi that demonstrates how a perl script can authenticate a user so that
SSO (single sign on) works with other Crowd enabled applications.

This example uses a modified Atlassian/Crowd.pm module downloaded from http://confluence.atlassian.com/download/attachments/9961902/Crowd-Apache-Connector-1.2.zip?version=1.
Batch is included at the end of the login.cgi.

Install the login.cgi to a place where it can be launched with a web browser.

Only Crowd.pm file is needed from the Crowd-Apache-Connector-1.2.zip. Copy it to a place where perl is looking for libraries. Easiest way is to create a directory Atlassian to same directory where login.cgi is and copy batched Crowd.pm there.

Please note that you need to install Soap::Lite and perhaps some other perl modules as well before using Crowd.pm.
Below is an example of the command you need to install a perl module:
perl -MCPAN -e 'install Soap::Lite'

Please note that Crowd SSO works only if applications are in the same domain, e.g. a same cookie is sent to each application.

Edited by: Marko Nordberg on Feb 21, 2008 10:37 AM

  • No labels