Using LDAP with Java CAPS

ProcedureTo Enable the Application Server to Access the LDAP Server

  1. Start the asadmin tool included with Sun Java System Application Server.

  2. Run the export-caps-ldap-configuration command. You must specify the directory where you want to store the LDAP.properties file.


    asadmin> export-caps-ldap-configuration --capsconfigdir c:\temp

    The LDAP.properties file is generated.

  3. Using a text editor, open the LDAP.properties file.

  4. Set values for the following properties, which specify how to access the LDAP server.

    • host

    • port

    • sslport

    • password

    • loginDN

    The ldapVersion property is optional. You can set this property to any numeric value.

  5. Save the LDAP.properties file.

  6. Run the import-caps-configuration command. You must specify the directory that contains the LDAP.properties file.


    asadmin> import-caps-configuration c:\temp
  7. Start the Admin Console included with Sun Java System Application Server.

  8. In the left pane, expand the CAPS node, the Environment and CM Overrides node, and the Environment Overrides node. Select the capsenv/LDAP node.

    The property fields appear in the right pane. You can now update the properties from the Admin Console. Or you can update the LDAP.properties file and run the import-caps-configuration command again.

    Screen capture of LDAP properties in the Admin Console.