インストールおよびアップグレード > Installation and Configuration Guide > PTC ソリューションインストーラの使用 > Windchill ソリューションのインストール > オプション製品の設定 > Windchill インデックスサーチのインストール > Windchill Index Search のインストール後の設定 > インデックスサーチサーバーのクラウドモードでの設定 > Solr の基本認証の設定 (クラウドモード)
  
Solr の基本認証の設定 (クラウドモード)
インストール時に入力したユーザー名とパスワードを使用して、基本認証が自動的に設定されます。このセクションでは、必要な場合に基本認証を手動で設定する方法について説明します。
1. コマンドプロンプトを開き、<インデックスサーチホーム>/solr/server/scripts/cloud-scripts に移動します。
2. 次のコマンドを実行して、security.json を ZooKeeper ノードアンサンブルにロードします。
Windows:
zkcli.bat -cmd putfile /security.json <インデックスサーチホーム>/config/solr/security.json -z <コンマで区切られた ZooKeeper ホスト名:ポートエントリのリスト>
Unix:
sh zkcli.sh -cmd putfile /security.json <インデックスサーチホーム>/config/solr/security.json -z <コンマで区切られた ZooKeeper ホスト名:ポートエントリのリスト>
* 
xconfmanger が実行されてインデックスサーチサーバーのプロパティが設定されるたびに、所定のユーザー名とパスワードを使用して <インデックスサーチホーム>/config/solr/security.json が生成されます。このファイルを ZooKeeper ノードアンサンブルにロードして、Solr クラウドの認証情報を設定したり変更したりできます。
3. Solr 管理者インタフェースを開き、ユーザー名とパスワードの入力を求められることを確認します。
http://<Solr ホスト名>:<Solr ポート>/solr
Solr のユーザーまたはパスワードの変更
Solr のユーザーまたはパスワードを変更するとき、Windchill Index Search のクライアントとサーバーの両方を更新する必要があります。
1. Windchill シェルを開き、以下のコマンドを実行して、Windchill Index Search クライアントのパスワードまたはユーザーを変更します。
xconfmanager -s wt.index.solrAdminUser=<新規ユーザー> -t codebase/WEB-INF/conf/index.solrAuth.properties -p
xconfmanager -s wt.index.solrAdminPassword=<新規パスワード> -t codebase/WEB-INF/conf/index.solrAuth.properties -p
2. Windchill を再起動します。
3. コマンドプロンプトから <インデックスサーチホーム>/bin に移動し、以下のコマンドを実行して、Windchill Index Search サーバーのパスワードまたはユーザーを変更します。
Windows:
xconfmanager -s wt.index.server.solrAdminUser=<新規ユーザー> -t config/solrserver.properties -p
xconfmanager -s wt.index.server.solrAdminPassword=<新規パスワード> -t config/solrserver.properties -p
Unix:
sh xconfmanager -s wt.index.server.solrAdminUser=<新規ユーザー> -t config/solrserver.properties -p
sh xconfmanager -s wt.index.server.solrAdminPassword=<新規パスワード> -t config/solrserver.properties -p
4. 前述の手順に従って <インデックスサーチホーム>/config/solr/security.json を ZooKeeper ノードアンサンブルにロードします。
5. Solr と ZooKeeper ノードを再起動します。