Vistas:
Question:
How can I set up basic authentication for the Fulltext Server?
 
Answer:
Securing a Fulltext connection is not necessary in a DocuWare On-Premise installation since the server itself can and should be installed on a dedicated machine behind a firewall with access only from the Platform, Background Process Service and WEB Settings.
However, there is a possibility to do this:
 
  1. Locate the server.xml file from the Fulltext Server:

    C:\Program Files\DocuWare\Full-Text Server (x64)\conf 
    and add a new user with the corresponding role:

     

    <tomcat-users xmlns="http://tomcat.apache.org/xml"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
                  version="1.0">
                  
        <role rolename="manager-gui"/>
        <user username="solr" password="solradmin" roles="manager-gui"/>

        <role rolename="solr-role"/>
        <user username="solr" password="solradmin" roles="solr-role"/>
    </tomcat-users>

    this will add a user "solr" with password "solradmin".

     
  2. Locate the tomcat-users.xml file:

    C:\Program Files\DocuWare\Full-Text Server (x64)\conf
    and add a new constraint and authentication method under “<security-constraint>“ element:

    <security-constraint>
      <!-- This protects your admin interface and grants access to role admin -->
      <web-resource-collection>
          <web-resource-name>Solr admin</web-resource-name>
          <url-pattern>/*</url-pattern>
          <url-pattern>/admin.html</url-pattern>
      </web-resource-collection>
      <auth-constraint>
          <role-name>solr-role</role-name>
      </auth-constraint>
      <security-role>
          <role-name>solr-role</role-name>
      </security-role>
    </security-constraint>
    <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>SOLR Realm</realm-name>
    </login-config>


     
  3.  Restart the Fulltext server, edit the Fulltext data connection in DocuWare Administration tool by enabling Basic Authentication and setting  the user to “solr“ and password to “solradmin“..