User Tools

Site Tools


en:user_advanced:user_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
en:user_advanced:user_management [2017/08/03 00:22] kjdonen:user_advanced:user_management [2017/08/03 00:23] kjdon
Line 19: Line 19:
    connectionURL="jdbc:derby:@gsdl3webhome@/etc/usersDB"    connectionURL="jdbc:derby:@gsdl3webhome@/etc/usersDB"
 -->   -->  
-        <Realm className="org.apache.catalina.realm.JDBCRealm"  +<Realm className="org.apache.catalina.realm.JDBCRealm"  
-                driverName="org.apache.derby.jdbc.ClientDriver" +        driverName="org.apache.derby.jdbc.ClientDriver" 
-                connectionURL="jdbc:derby://@derbyserver@:@derbyserverport@/@gsdl3webhome@/etc/usersDB" +        connectionURL="jdbc:derby://@derbyserver@:@derbyserverport@/@gsdl3webhome@/etc/usersDB" 
-                userTable="users" userNameCol="username" userCredCol="password" +        userTable="users" userNameCol="username" userCredCol="password" 
-                userRoleTable="roles" roleNameCol="role" +        userRoleTable="roles" roleNameCol="role" 
-                />+        />
 </code> </code>
  
Line 30: Line 30:
  
 <code> <code>
-        <Realm className="org.apache.catalina.realm.JDBCRealm"  +<Realm className="org.apache.catalina.realm.JDBCRealm"  
-                driverName="org.apache.derby.jdbc.ClientDriver" +        driverName="org.apache.derby.jdbc.ClientDriver" 
-                connectionURL="jdbc:derby://localhost:1527//greenstone/greenstone3/web/etc/usersDB" +        connectionURL="jdbc:derby://localhost:1527//greenstone/greenstone3/web/etc/usersDB" 
-                userTable="users" userNameCol="username" userCredCol="password" +        userTable="users" userNameCol="username" userCredCol="password" 
-                userRoleTable="roles" roleNameCol="role"+        userRoleTable="roles" roleNameCol="role"
                 />                 />
  
Line 41: Line 41:
 Logins timeout when the tomcat session expires. Session expiry happens after a specified period of inactivity. In LibraryServlet.java, have  Logins timeout when the tomcat session expires. Session expiry happens after a specified period of inactivity. In LibraryServlet.java, have 
 <code> <code>
-        /** +/** 
-         * the maximum interval that the cached info remains in session_ids_tabl +  * the maximum interval that the cached info remains in session_ids_table 
-+  * (in seconds) This is set in web.xml 
-         * (in seconds) This is set in web.xml +  */ 
-         */ +  protected int session_expiration = 1800;
-        protected int session_expiration = 1800;+
  
 </code> </code>
Line 52: Line 51:
 This can be overridden by putting a session-expiration init-param into your servlet specification in web/WEB-INF/servlets.xml (which is included by web.xml). This is specified in seconds. This can be overridden by putting a session-expiration init-param into your servlet specification in web/WEB-INF/servlets.xml (which is included by web.xml). This is specified in seconds.
 <code> <code>
-        <init-param> +<init-param> 
-          <param-name>session_expiration</param-name> +  <param-name>session_expiration</param-name> 
-          <param-value>3600</param-value> +  <param-value>3600</param-value> 
-        </init-param>+</init-param>
 </code> </code>