Configure Apache Tomcat users and groups
Follow these steps to set up Apache Tomcat authentication for Transact. Apache Tomcat configuration is enabled in these several configuration files.
If you change any of these files, restart the Transact service to apply the changes.
- <Transact Folder>\Application\WEB-INF\classes\META-INF\dcma-user-connectivity\user-connectivity.properties
-
This file contains the settings necessary to populate group names in Transact Batch Class Management.
The following settings should be set for Tomcat:
user.connection=2 user.tomcatUserXmlPath= <Transact Folder>\\JavaAppServer\\conf\\tomcat-users.xml
For example, if the Transact folder is C:\Ephesoft, set the value as shown:
user.tomcatUserXmlPath=C:\\Ephesoft\\JavaAppServer\\conf\\tomcat-users.xml
- <Transact Folder>\JavaAppServer\conf\server.xml
-
This file tells <Transact Folder> that users should be authenticated using Tomcat. The realm should be set as follows:
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
If you are on another authentication type, such as Microsoft Active Directory or LDAP authentication, and want to revert back to Apache Tomcat, comment out this section in server.xml.
<Realm className="org.apache.catalina.realm.JNDIRealm"/>
- <Transact Folder>\JavaAppServer\conf\tomcat-users.xml
-
This file contains user groups and users. For example, a group called "admin" and a user called "ephesoft" with password "demo" is defined as follows:
<role rolename="admin"/> <user username="ephesoft" password="demo" roles="admin"/>
- <Transact Folder>\Application\WEB-INF\classes\META-INF\application.properties
-
This file contains settings necessary to update the admin group for Apache Tomcat. The following properties should be set.
update_super_admin_group=true user.super_admin=admin