通信アダプタ用 Java CAPS プロジェクトコンポーネントの構成

ProcedureRCF ユーティリティーを使って資格ファイルを作成するには

  1. RCF ユーティリティーで使用されるファイルは、次の場所に格納されています。


    netbeans_home\usrdir\modules\ext\ldapadapter\stcldap13.jar

    または


    <netbeans_home>\usrdir\modules\ext\ldapadapter\
    stcldap14.jar
  2. 上記ファイルのいずれかをあるフォルダにコピー & ペーストし、そのフォルダから次のようにしてユーティリティーを実行します。


    netbeans_home\jdk\bin\java -cp ./stcldap13.jar
    com.stc.connector.ldapadapter.utils.RCFUtil

    次のメニューが表示されます。


          C:\temp>java -cp ./stcldap13.jar
          com.stc.connector.ldapadapter.utils.RCFUtil
          
          Please specify the operation.
          
          ---+ RCFUtil +---
          
          Interactive command line utility for creating and managing
           file(s) containing credentials information to follow LDAP
           referrals. File(s) generated can be used by the Java LDAP Adapter
           for following referrals that required credentials different
           from those used to create the connection to the initial LDAP
           server.
          
          Usage : java com.stc.connector.ldapadapter.utils.RCFUtilOPTIONS       -- <filename>
          
          OPTIONS:
          
          --create Create a new referral credentials file.
          --add Add an entry to the referral credentials file.
          --list Print a list of entries in the referral credentials file.
          --remove Remove an entry from the referral credentials file.
          --modify Modify an entry in the referral credentials file.
          --decrypt When displaying credentials, decrypt the credentials.
          --username <username>  Specify the username; if not specified,         it’ll be prompted.
          --password <password>  Specify the password; if not specified,         it’ll be prompted.
          --help Print this usage.
          
          filename:
          
          The full path to the referral credentials file.
  3. samplercf.txt という名前の新しいリフェラルファイルを作成するには、コマンド行で次のパラメータを入力します。


    netbeans_home\jdk\bin\java -cp ./stcldap13.jar
    com.stc.connector.ldapadapter.utils.RCFUtil --create -- samplercf.txt

    すると、ユーザー名とパスワードが要求されます。ユーザー名とパスワードを入力します。このユーザー名とパスワードは、ファイル自体を保護するためのものです。というのも、このファイルには、ほかの LDAP サーバーに関する機密性の高い資格情報が含まれているからです。次に例を示します。


          C:\temp>c:\JavaCAPS6\netbeans\jdk\bin\java -cp .\stcldap13.jar       com.stc.connector.ldapadapter.
    utils.RCFUtil
          --create -- samplercf.txt
          Creating file samplercf.txt...
          Enter username >> test
          Enter password >> test
          File created!

    「File created!」というメッセージが表示されます。この場合のファイル名は、samplercf.txt です。拡張子は何でもかまいません。