Configuring Java CAPS Project Components for Communication Adapters

ProcedureTo View the Contents of the Credentials File

  1. To view LDAP Server connection info in 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 --list --
           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. The entries in the file are listed as shown in the following single-entry example:


          1> localhost.stc.com | 389 | cn=Manager,dc=stc,dc=com | l/
          ZRt1cfNKc=
  4. The password is encrypted. To display the password in its decrypted form add --decrypt to the previous command. The output is as follows:


          1> localhost.stc.com | 389 | cn=Manager,dc=stc,dc=com | secret

    For example:


          C:\temp>c:\JavaCAPS6\netbeans\jdk\bin\java -cp .\stcldap13.jar
           com.stc.connector.ldapadapter.utils.RCFUtil --list --
           samplercf.txt
          Listing entries in the referral credentials file...
          Enter username >> test
          Enter password >> test
          1> localhost.stc.com | 389 | cn=Manager,dc=stc,dc=com | l/
          ZRt1cfNKc=
          
          C:\temp>c:\JavaCAPS6\netbeans\jdk\bin\java -cp .\stcldap13.jar
           com.stc.connector.ldapadapter.utils.RCFUtil --list --decrypt --
           samplercf.txt
          Listing entries in the referral credentials file...
          Enter username >> test
          Enter password >> test
          1> localhost.stc.com | 389 | cn=Manager,dc=stc,dc=com | secret

    Other operations, such as removing a credential entry and modifying a credential entry for an entry, can be done using the RCF utility in the same way.

    The following example shows the content of a credentials file, samplercf.txt, with explanatory comments:


          ###This properties file was generated by
          #com.stc.connector.ldapadapter.utils.RCFUtil.
          #Do NOT modify this file "by hand" if you don’t understand the
           nature
          #or format of this file. Use the utility to create and
          #manage this file.
          #
          #Tue Feb 14 17:49:17 PST 2006
          password=P9He6eCUY6Q\=
          localhost.stc.com\:389=test;P9He6eCUY6Q\=
          username=test
          #New credentials entry that was created.