Solr の基本認証の設定 (スタンドアロンモード)
インストール時に入力したユーザー名とパスワードを使用して、基本認証が自動的に設定されます。このセクションでは、必要な場合に基本認証を手動で設定する方法について説明します。
1. 以下のコマンドを使用して Solr を停止します。
Windows
<インデックスサーチホーム>/bin/Index_Search_Server.bat stop
Unix
sh <インデックスサーチホーム>/bin/Index_Search_Server.sh stop
2. <インデックスサーチホーム>/solr/server/solrsecurity.json ファイルを作成します。
{"authorization":{"user-role":{"solr":"admin"},"permissions":[{"role":"admin","name":"security-edit"},{"role":"admin","name":"restrict_collections"},{"role":"admin","name":"restrict_select"},{"role":"admin","name":"restrict_update"},{"role":"admin","name":"read"}],"class":"solr.RuleBasedAuthorizationPlugin"},"authentication":{"credentials":{"solr":"QYZUoPfBdxuI5uj/kUtzzq1vd8PzVly4w4Tb2ex7AFs= Pf23jNAILqwXhFr0KryubbQKgbUTVshXUf+vb6kNpgc="},"blockUnknown":true,"class":"solr.BasicAuthPlugin"}}
3. 次のコマンドを使用して Solr を起動します。
Windows
<インデックスサーチホーム>/bin/Index_Search_Server.bat start
Unix
sh <インデックスサーチホーム>/bin/Index_Search_Server.sh start
4. 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. Solr を再起動します。
これは役に立ちましたか?