The instructions on this page describe how to configure the caching of your LDAP repository.

On this page:

Disabling the Caching of Users

By default, caching is activated for your LDAP users. We recommend that you do not disable caching of your LDAP users, as your LDAP repository may be overloaded by the high volume of requests by Bamboo.

To disable the caching of users:

  1. Click the 'Administration' link in the top navigation bar.
  2. Edit the file .../webapp/WEB-INF/classes/atlassian-user.xml
  3. Set the property cache="false" on your LDAP repository, as shown in the example below:
          
    <ldap key="myLdapRepository" name="LDAP Repository@hecate.atlassian.com" cache="false">
              <host>hecate.atlassian.com</host>
              <port>389</port>
    

Enabling the Caching of Users

By default, caching is activated for your LDAP users. If you need to enable caching, follow the instructions below:

To enable the caching of users:

  1. Edit the file .../webapp/WEB-INF/classes/atlassian-user.xml
  2. Set the property cache="true" on your LDAP repository as shown in the example below:
          
    <ldap key="myLdapRepository" name="LDAP Repository@hecate.atlassian.com" cache="true">
              <host>hecate.atlassian.com</host>
              <port>389</port>
    
    

Configuring the LDAP Caches

Bamboo uses a number of caches for managing an LDAP repository, each of which can be configured differently. You must enable caching, as described above, before configuring the caches. The caches used by Bamboo are:

Each cache can be configured by following the instructions below:
To configure a cache:

  1. Edit the file .../webapp/WEB-INF/classes/ehcache.xml.
  2. Find the cache that you wish to edit. Examples of each of the caches are described in the Configuring Caches for Users and Configuring Caches for User Groups sections below.
  3. Modify the cache, as desired. The following properties can be configured for each cache:

If you have caching turned on Bamboo will, by default, set the cache to eternal (elements will never expire), and set the maximum number of elements stored to 500. These can be configured to speed up user retrieval, reduce memory usage or reduce the load on the LDAP repository.

Configuring Caches for Users

(warning) In each of the examples below, replace myLdapRepository with the key of the repository specified in atlassian-user.xml

Configuring Caches for User Groups

(warning) In each of the examples below, replace myLdapRepository with the key of the repository specified in atlassian-user.xml

Notes

Related Topics

Integrating Bamboo with LDAP