Configure Basic Authentication for Solr (Cloud Mode)
Basic authentication is automatically configured with the user name and password provided at the time of installation. This section describes how to configure the basic authentication manually if required.
* 
Starting from Solr 9.0.0, if Windchill is configured with SSL, then Solr should be configured with SSL.
1. Open a command prompt and navigate to <INDEX_SEARCH_HOME>/solr/server/scripts/cloud-scripts.
2. Execute the following command to load security.json to the Zookeeper node ensemble:
Windows:
zkcli.bat -cmd putfile /security.json <INDEX_SEARCH_HOME>/config/solr/security.json -z <comma-separated list of Zookeeper hostname:port entries>
Unix:
sh zkcli.sh -cmd putfile /security.json <INDEX_SEARCH_HOME>/config/solr/security.json -z <comma-separated list of Zookeeper hostname:port entries>
* 
Whenever xconfmanger is executed to set the properties for the index search server, it generates <INDEX_SEARCH_HOME>/config/solr/security.json with the given username and password. This file can be loaded into the Zookeeper node ensemble to set or change the authentication information for Solr cloud.
3. Open the Solr administrator interface and verify that you are prompted for a username and password:
http://<SOLR_HOSTNAME>:<SOLR_PORT>/solr
Changing the Solr User or Password
When you change the Solr user or password, you must update both the Windchill Index Search client and server.
1. Open a Windchill shell and execute following commands to change the password or user for the Windchill Index Search client:
xconfmanager -s wt.index.solrAdminUser=<New_User> -t codebase/WEB-INF/conf/index.solrAuth.properties -p
xconfmanager -s wt.index.solrAdminPassword=<New_Password> -t codebase/WEB-INF/conf/index.solrAuth.properties -p
2. Restart Windchill.
3. From a command prompt, navigate to <INDEX_SEARCH_HOME>/bin and execute the following commands to change the password or user for the Windchill Index Search server:
Windows:
xconfmanager -s wt.index.server.solrAdminUser=<New_User> -t config/solrserver.properties -p
xconfmanager -s wt.index.server.solrAdminPassword=<New_Password> -t config/solrserver.properties -p
Unix:
sh xconfmanager -s wt.index.server.solrAdminUser=<New_User> -t config/solrserver.properties -p
sh xconfmanager -s wt.index.server.solrAdminPassword=<New_Password> -t config/solrserver.properties -p
4. Follow the steps outlined above to load <INDEX_SEARCH_HOME>/config/solr/security.json to the Zookeeper node ensemble.
5. Restart Solr and the Zookeeper nodes.
¿Fue esto útil?