ImportantConfiguring XMLmind XML Server always involves modifying
files found in
xslsrv.war. This implies unpacking(1) xslsrv.war, modifying some configuration
files and then repacking xslsrv.war. Fortunately, this
is generally done once for all. |
xslsrv/WEB-INF/web.xml
(xslsrv/ being the unpacked
xslsrv.war) using a text editor and remove the
line starting with "<!--AUTH" and also the line ending
with "AUTH-->". <!--AUTH
<security-constraint>
<web-resource-collection>
<web-resource-name>ConvertServlet</web-resource-name>
<url-pattern>/exec/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>DIGEST</auth-method>
<realm-name>XSL Server</realm-name>
</login-config>
<security-role>
<role-name>user</role-name>
</security-role>
AUTH-->
<login-config> <auth-method>BASIC</auth-method> <realm-name>XSL Server</realm-name> </login-config>
install_dir/doc/manual/tomcat/META-INF/
to xslsrv.war.
META-INF/ contains file
context.xml:<Context ... >
<Realm className="org.apache.catalina.realm.MemoryRealm"
pathname="conf/tomcat-users.xml"/>
</Context>
install_dir/doc/manual/tomcat/tomcat-users.xml
to /opt/tomcat/conf/./opt/tomcat/conf/tomcat-users.xml using a
text editor to declare some users:
<tomcat-users> <role rolename="user"/> <user username="john" password="secret" roles="user"/> ...
| (1) | A .war file is just a ZIP archive having a ".war" suffix. |