
Documentation for Crowd 2.0.x. Documentation for other versions of Crowd is available too.
Crowd provides a number of modules that allow you to configure Crowd to authenticate HTTP Authentication requests made to an Apache web server.
以下の機能がサポートされています。
Note: These instructions assume some UNIX system and Apache configuration knowledge.
On this page:
Download and configure Crowd. Refer to the Crowd installation guide for detailed information on how to do this.
Crowd needs to be aware that Apache will be making authentication requests to Crowd. In brief, you will need to do the following:
The installation procedures for Apache and the Crowd Apache connector vary depending on the operating system you are using. Use the links below to find installation instructions for your chosen operating system. If you have not chosen an operating system yet, you will probably find one of the Linux variants easiest to set up.
To tell Apache to use Crowd to authenticate requests for a particular location, edit the Apache config file and add the following commands to a <Location> or <Directory> section.
Alias /crowd/ "/var/crowd/" <Directory "/var/crowd/"> . . . AuthName crowd AuthType Basic PerlAuthenHandler Apache::CrowdAuth PerlSetVar CrowdAppName appname PerlSetVar CrowdAppPassword apppassword PerlSetVar CrowdSOAPURL http://localhost:8095/crowd/services/SecurityServer PerlSetVar CrowdCacheEnabled on PerlSetVar CrowdCacheLocation /tmp/CrowdAuth PerlSetVar CrowdCacheExpiry 300 require valid-user . . . </Directory>
コマンド |
説明 |
|---|---|
Alias /crowd/ "/var/crowd/" <Directory "/var/crowd/"> . . . </Directory> |
See the Apache documentation for the format of the <Directory> and Alias directives. We have used the URL path of |
|
Defines the realm of the authentication. This information is typically provided to the user in the dialogue box popped up by their browser. This must be a unique name for each crowd application |
|
Tells Apache to use basic authentication. Digest authentication is not currently supported. |
|
Tells Apache to delegate authentication to the CrowdAuth module |
|
Set the Application Apache should authenticate as |
|
Set the password for the Application |
|
The URL of the Crowd SOAP service |
|
[optional] Controls whether CrowdAuth caches authentications locally to improve performance. Set to "on" or "off". Caching is "on" by default |
|
[optional] The directory in which CrowdAuth's local cache is stored. Defaults to |
|
[optional] The time (in seconds) before cached authentications in CrowdAuth's local cache expire. Defaults to 300 seconds (5 minutes) |
|
Tells Apache that clients must provide a valid username/password to access the location |
For more detail about Apache configuration, please refer to the Apache documentation.
If you want to restrict access to a certain Apache directory or Location, to that only a subset of Crowd users and/or groups have permissions, add the following lines to your configuration:
<Location URL_to_restrict> . . . PerlAuthzHandler Apache::CrowdAuthz PerlSetVar CrowdAllowedUsers johnh,kevinr PerlSetVar CrowdAllowedGroups developers,crowd-administrators,customers:r . . . </Location>
コマンド |
説明 |
|---|---|
|
Tells Apache to use the |
|
Allow only the users |
|
Allow only members of the |
If you are using Subversion under Apache, Crowd's Subversion connector allows you to password-protect a Subversion repository and provide fine-grained access control by group or user.
Follow the instructions on integrating Crowd with Subversion.
CrowdAllowedUsers or CrowdAllowedGroups would be needed for a particular location. You can define both. If you do, then access is granted if either is satisfied.CrowdCacheEnabled setting is on, then authorisation checks are cached in order to increase performance. This means that changes to group membership in Crowd may not be reflected immediately in user access.CrowdAllowedGroups setting and your group names contain spaces, then surround the group names with quotes, for example:
PerlSetVar CrowdAllowedGroups "Admin Staff,developers"
PerlSetVar CrowdSOAPURL https://localhost:8095/crowd/services/SecurityServer
The CrowdAuth module logs detailed output if the Apache LogLevel parameter is set to info or debug. This can be useful in diagnosing problems.
Apache Log Error Message |
Possible Cause and Next Steps |
|---|---|
|
One or both of the |
|
The attempt to authenticate the application with Crowd failed. Check the values of the |
|
Failed to authenticate a username/password pair provided by the client. This may just mean that the username or password supplied is incorrect. Note that |
|
Internal SOAP protocol error. |
|
Indicates that Apache can't connect to the Crowd SOAP service. |
|
Indicates that the URL used to connect to the Crowd SOAP service is incorrect. Check the value of the |
|
The |
|
The |
|
This message indicates a missing or old installation of SOAP::Lite. Try installing (or reinstalling) version 0.71 of SOAP:Lite. |
|
This message is a result of using Perl 5.10 with SOAP::Lite 0.69. Upgrading SOAP::Lite to version 0.71 or greater should correct the problem. |