![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
ファイル転送サービスでのスクリプトによる認証の使用可能化
ファイル転送サービスは、ロール・ベースの認証を提供します。スクリプトと wsadmin ツールを使用して、ファイル転送サービスでの認証を使用可能にすることができます。
始める前に
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
手順
- ファイル転送 Web アプリケーションの再デプロイに役立つ、redeployFileTransfer.jacl スクリプトを実行します。 この wsadmin スクリプトは、app_server_root/bin ディレクトリーにあります。次の構文を使用して、app_server_root/bin ディレクトリーから
スクリプトを実行します。
この例では、変数は次の情報を表しています。wsadmin -conntype NONE -lang jacl -profile redeployFileTransfer.jacl -c"fileTransferAuthenticationXxx cell_name node_name dmgr"- Xxx は On または Off です。
- cell_name は、セルの名前です。
- node_name は、ノードの名前です。
- dmgr はサーバー・タイプです。このスクリプトは、デプロイメント・マネージャー上でのみ実行できます。
![[AIX]](../images/aixlogo.gif)
![[Linux]](../images/linux.gif)
![[HP-UX]](../images/hpux.gif)
wsadmin.sh を使用します。
wsadmin を使用します。
さまざまな認証オプションを用いたスクリプトの実行方法については、以下の例を検討してください。
wsadmin または wsadmin.bat を使用します。- filetransfer.ear ファイルを使用する、認証を伴うスクリプトを実行するには、次のようなコマンドを使用します。
wsadmin -conntype NONE -lang jacl -profile redeployFileTransfer.jacl -c"fileTransferAuthenticationOn managedCell managedCellNode dmgr" - 認証を伴わずに、スクリプトおよびファイル転送サービスを実行するには、次のようなコマンドを使用します。
wsadmin -conntype NONE -lang jacl -profile redeployFileTransfer.jacl -c"fileTransferAuthenticationOff managedCell managedCellNode dmgr"
前述の例では、次の値が適用されます。- managedCell はセルの名前です。
- managedCellNode はノードの名前です。
- dmgr はサーバー・タイプです。
- ファイル転送サービスに関連するエラーが表示された場合は、systemapps.xml ファイルを検討して、問題のトラブルシューティングを行ってください。 認証を、既に構成済みの状態に設定しようとすると、以下のエラーが表示される場合があります。
例えば、既に認証がオンに設定されている場合にオンに設定しようとすると、または既に認証がオフに設定されている場合にオフに設定しようとすると、このエラーが表示されます。Error: com.ibm.ws.scripting.ScriptingException: WASX7280E: An application with name "filetransfer" does not exist.ファイル転送認証の現在の状態を判別するには、app_server_root/AppServer/profiles/dmgr_profile/config/cells/cell_name/nodes/node_name ディレクトリーにある systemapps.xml ファイルを参照してください。- This entry indicates that authentication is on:
<deployedApplications>${app_server_root}/ systemApps/filetransferSecured.ear</deployedApplications> - This entry indicates that authentication is off:
<deployedApplications>${app_server_root}/ systemApps/filetransfer.ear</deployedApplications>
- This entry indicates that authentication is on:
次のタスク
タスク・トピック
最終更新: last_datehttp://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-base-dist&topic=txml_authfile
ファイル名:txml_authfile.html