Tomcat settings
Realms
Zcore realms are defined in context.xml:
<Realm className="org.apache.catalina.realm.UserGroupRoleRealm" connectionName="APP" connectionPassword=" " connectionURL="jdbc:derby://localhost/zeprs;create=true" debug="99" driverName="org.apache.derby.jdbc.ClientDriver" groupFK="group_id" groupPK="id" groupTable="user_group_membership" mysqlPassword="true" roleNameCol="role" userCredCol="password" userFK="id" userNameCol="username" userRoleTable="user_group_role" userTable="user_info" encryptionMethod="none"/>
ZEPRS-specific: The Realm is defined in server.xml
<Realm className="org.apache.catalina.realm.UserGroupRoleRealm" debug="99"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost/zeprs?autoReconnect=true"
connectionName="zeprs_web_user"
connectionPassword="0UpaxVKr"
userTable="mail.accountuser"
userNameCol="username"
userCredCol="password"
groupTable="user_group_membership"
userFK="id"
groupPK="id"
userRoleTable="user_group_role"
roleNameCol="role"
groupFK="group_id"
mysqlPassword="true"/>
Struts-config
The xml file struts-config.xml has two entries for the admin app - a simple form bean to carry the username used in the search query, and the action/forward.
<form-bean name="userSearch" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="searchUsername" type="java.lang.String"/> </form-bean> <action path="/admin/users" type="org.cidrz.webapp.dynasite.struts.action.admin.UserAdminAction"> <forward name="success" path="/WEB-INF/pages/admin/users.jsp"/> </action>
- Printer-friendly version
- Login to post comments
- PDF version