Sun OpenSSO Enterprise 8.0 Integration Guide

ProcedureTo Manually Modify the Account Lockout Message Page

  1. Use a text editor to open the file web-container-deploy-base/opensso/config/auth/default/user_inactive.jsp.

  2. Add the sections of code highlighted in bold in the following example:


    ...
    <head>
    <title><jato:text name="htmlTitle_UserInactive" /></title>
    <%
    String ServiceURI = (String) viewBean.getDisplayFieldValue(viewBean.SERVICE_URI);
    System.out.println("AccountId: " + request.getParameter("IDToken1"));
    System.out.println("goto: " + request.getParameter("goto"));
    System.out.println("plaingoto: " + request.getParameter("plaingoto"));
    String accountId = request.getParameter("IDToken1");
    String gotoURL = request.getParameter("plaingoto");
    String redirectURL = 
         "http://HostName.domainName.com:6480/idm/authutil/anonResetPassword.jsp";
             if(accountId != null){
    redirectURL = redirectURL + "?accountId=" + accountId;
    }
    
    if(gotoURL != null && !gotoURL.equals("null") && (gotoURL.length() > 0)){
    if(accountId == null){
    redirectURL = redirectURL + "?goto=" + gotoURL;
    }else{
    
    redirectURL = redirectURL + "&goto=" + gotoURL;
    
    }
    
    }    
    
    %>
    
    
    ...
    <div class="AlrtMsgTxt">
    <auth:resBundle bundleName="amAuthUI" resourceKey="contactadmin" />
    
    <!-- hyperlink -->
    
    <jato:content name="ContentHref">
    <p><a href="<%= redirectURL %>">Unlock Yourself</a></p>
    </jato:content>
    </div>
    </td></tr></table></div></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><img src="<%= ServiceURI %>/images/dot.gif"
    width="1" height="33" alt="" /></td>
    <td>&nbsp;</td>
    </tr>
    ...
  3. Embedded in the JSP, you will see the URL to the Identity Manager page that allows the account unlock. Modify this URL as per your deployment.

  4. Remove the web containers temporary, compiled JSP to ensure that the changes made are picked up.

    For example, if using GlassFish, the temporary, compiled classes can be found under glassfish-home/domains/your-domain/generated/.

  5. Restart the OpenSSO Enterprise web container after making the changes.