スクリプトと wsadmin ツールを使用して、ファイル転送サービスでの認証を使用可能にすることができます。
プロシージャー
- ファイル転送の再デプロイを支援するために、
wsadmin Jacl スクリプトが用意されています。
このスクリプトは redeployFileTransfer.jacl と呼ばれ、app_server_root/bin ディレクトリーにあります。
このスクリプトを bin ディレクトリーから実行するための構文は、次のとおりです。
wsadmin -profile redeployFileTransfer.jacl -c "fileTransferAuthenticationXxx cellName nodeName serverName"
ここで、Xxx は
On または
Off です。
wsadmin を使用します。
- 例えば、スクリプトを実行して filetransferSecured.ear ファイルを使用できるようにする場合、
構文は次の例のようになります。
wsadmin -profile redeployFileTransfer.jacl -c "fileTransferAuthenticationOn managedCell managedCellManager dmgr"
またはwsadmin -profile redeployFileTransfer.jacl -c "fileTransferAuthenticationOn baseCell base server1"
- 元に戻って、認証を行わずにファイル転送サービスを実行する場合は、
スクリプトを次の例のように実行します。
wsadmin -profile redeployFileTransfer.jacl -c "fileTransferAuthenticationOff baseNodeCell baseNode server1"
またはwsadmin -profile redeployFileTransfer.jacl -c "fileTransferAuthenticationOff managedCell managedCellManager dmgr"
次の作業
変更を有効にするには、サーバーを再始動する必要があります。