Using LDAP with Java CAPS

Specifying an LDAP URL for a Property

Here are two examples of LDAP URLs that might be used in Java CAPS:


ldap://uid=BatchFTP_TargetFileName,ou=Batch_Adapter,dc=Adapters,dc=sun,dc=com?cn
ldap://uid=BatchFTP_Password,ou=Batch_Adapter,dc=Adapters,dc=sun,dc=com?cn

The correct path to the property value in the LDAP server depends on the directory structure.

Do not include the backslash character (\) in an LDAP URL.

RFC 2255 defines the format of LDAP URLs. You can view the RFC at http://www.ietf.org/rfc.html.

ProcedureTo Specify an LDAP URL for a Property

  1. In the NetBeans IDE, access the Properties dialog box that includes the property.

  2. Enter an LDAP URL that points to the corresponding attribute in the LDAP server.

    In the following screen capture, the Input File Name property is set to an LDAP URL.

    Screen capture of the Properties dialog box.
  3. Go to the LDAP server and enter the actual value.

  4. When you deploy the application file, ensure that the LDAP server is running. If the LDAP server is not running, then the deployment will not succeed.