Configuring Java CAPS Project Components for Communication Adapters

ProcedureTo Add Credentials Information To the File

  1. To add LDAP Server connection info to a referral file called samplercf.txt, enter the following parameters on the command line:


          
    netbeans_home\jdk\bin\java -cp ./stcldap13.jar
          com.stc.connector.ldapadapter.utils.RCFUtil --add --
           samplercf.txt
  2. Username and Password are required to access the file. Provide the user name and password given for creating the file previously.

  3. When the following prompts appear, enter the following information, as indicated:

  4. Prompts for the host name: Enter the host name.

  5. Prompts for the port number: Enter the LDAP port number.

  6. Prompts for the principal: Enter the fully qualified DN of the user.

  7. Prompts for the password: Enter the password for the DN specified previously.

    For example:


          C:\temp>c:\JavaCAPS6\netbeans\jdk\bin\java -cp .\stcldap13.jar
           com.stc.connector.ldapadapter.utils.RCFUtil --add --
           samplercf.txt
          Adding a referral credentials entry...
          Enter username >> test
          Enter password >> test
          Enter LDAP Host >> localhost.stc.com
          Enter LDAP Port >> 389
          Enter the Principal >> cn=Manager,dc=stc,dc=com
          Enter the Credentials >> secret
          
          Done.