Using the stand-alone tool to clear the LDAP cache

Use the stand-alone tool to clear the LDAP cache and make changes to LDAP users and groups visible immediately in the Application Center.

About this task

When the Application Center is configured with LDAP, changes to users and groups on the LDAP server become visible to the Application Center after a delay. The Application Center maintains a cache of LDAP data and the changes only become visible after the cache expires. By default, the delay is 24 hours. If you do not want to wait for this delay to expire after changes to users or groups, you can call the stand-alone tool from the command line to clear the cache of LDAP data. By using the stand-alone tool to clear the cache, the changes become visible immediately.

Procedure

Use the stand-alone tool by following these steps.

  1. Add applicationcenterdeploytool.jar and json4j.jar to the java classpath environment variable.
  2. Call the upload tool from the command line:
    java com.ibm.appcenter.Upload -clearLdapCache [options]

    You can pass any of the available options in the command line.

    Option Content indicated by Description
    -s serverpath The path to the Application Center server.
    -c context The context of the Application Center web application.
    -u user The user credentials to access the Application Center.
    -p password The password of the user.
    -y   Disable SSL security checking, which allows publishing on secured hosts without verification of the SSL certificate. Use of this flag is a security risk, but may be suitable for testing localhost with temporary self-signed SSL certificates.

Example

In this example, user demo has the password demopassword.

java com.ibm.appcenter.Upload -clearLdapCache -s http://localhost:9080 -c applicationcenter -u demo -p demopassword