Updating User Names and Passwords

Authentication credentials are hardcoded into the content that is generated by the SAS Java application SAS JDBC DataBean Class template and all SAS web application templates that use the SAS Foundation Services. If you used these templates in the migrated project, you need to examine and update the credentials to whatever is appropriate for the SAS 9.4 BI installation that you will access with the web application. The following instructions assume that the generated code for handling authorization is in use and has not been modified.
For SAS web application templates that use the SAS Foundation Services, the credentials can be found in the project’s web.xml file as initialization parameters for the servlet declaration for the controller servlet. The initialization parameters are named metadata-domain, metadata-userid, and metadata-password.
For example:
<servlet>
  <servlet-name>StoredProcessDriverServlet</servlet-name>
  <servlet-class>servlets.StoredProcessDriverServlet</servlet-class>
  <init-param>
    <param-name>metadata-domain</param-name>
    <param-value>some domain (typically DefaultAuth)</param-value>
  </init-param>
  <init-param>
    <param-name>metadata-userid</param-name>
    <param-value>some userid</param-value>
  </init-param>
  <init-param>
    <param-name>metadata-password</param-name>
    <param-value>some password</param-value>
</init-param>
</servlet>
For the SAS JDBC DataBean Class template, the initialization parameters for the credentials are named username and password.
For example:
<servlet>
  <servlet-name>JDBCTableViewExampleControllerServlet</servlet-name>
  <servlet-class>servlets.JDBCTableViewExampleControllerServlet</servlet-class>
  <init-param>
    <param-name>username</param-name>
    <param-value>some username</param-value>
  </init-param>
  <init-param>
    <param-name>password</param-name>
    <param-value>some password</param-value>
  </init-param>
</servlet>
The SAS JDBC DataBean Class template creates a class that requires that you supply a JDBC connection. Example code for creating this connection is provided inside a comment near the beginning of this class. The code shows that the user and password keys and values are placed in a java.util.Properties object. If you have implemented any connection code, the code needed to actually implement and create the JDBC connection will differ from the example code.