The login page by default is loaded as an iframe within a larger page that contains main.jsp and content.jsp. Novell's idea was to allow the main.jsp to provide branding across many pages and login contracts without people having to customize several different jsp pages. If you do not perform any federation or do not use other login methods, you can create a custom jsp page that is not within the iframe.
You can use the main.jsp file to customize the header with the Novell Access Manager product name and the Novell logo. The login.jsp file controls the credential frame with username and password. The contents.jsp file controls what is displayed on the page, including the available authentication cards.
You must be familiar with customizing JSP files when customizing the login pages. The JSP files are located on the Identity Server in the following directory:
IMPORTANT:After you have customized these pages, you need to ensure you back them up before doing an upgrade. The upgrade process overrides any custom changes made to JSP files.
<title><%=handler.getResource(JSPResDesc.TITLE)%></title>Replace the content between the <title> and </title> tags with the title you want to appear. For example:
<title>My Company</title>The display title is the title that appears in the top frame of the page. Locate the following text that appears in the <body> of the page:
<div id="title"><%=handler.getResource(JSPResDesc.PRODUCT)%></div>Replace the content between the <div id="title"> and </div> with the title you want to appear. For example:
<div id="title">My Company</div>
<div><img src="<%=handler.getImage("AccessMan_Login_Head.png",false)%>"></div>Replace the value of the src attribute with the path and filename of the image you want to use.
To replace the Novell logo image, locate the following text in the body of the file.
<div id="logo"><img src="<%=handler.getImage("AccessMan31_Nlogo.png",false)%>"></div>Replace the value of the src attribute with the path, starting from the webapps directory, and filename of the image you want to use. For example, if you created a /custom/images directory in the webapps directory, the src attribute would have a value similar to the following:
scr="/custom/images/companylogo.gif"
To customize logout, you need to modify the logoutSuccess.jsp on the Access Gateway. When you call the logout URL, <ESP DOMAIN>/AGLogout,
target="_top"to the href and clicking on it opens the target page in a full window rather than just in the frame.
We also were struggling getting the target to work properly with multiple custom contracts. We found that if you add this tag to your form along with target it will work properly
<input type="hidden" name="id" value="IDOFCARD">
The value IDOFCARD is what you specify in your admin console at
IDP >Cluster > Local > Contract > Authentication > ID
It seems that the id of the contract needs to be passed in order to prevent your being send to your target and then back to your idp. The ID also is compliant with the recent html standards.
During an patch or upgrade, the JSP pages and their resources are over written. We would recommend that you take appropriate precautions to prevent the loss of your customized JSP pages and resources. To make this easier, you might want to implement your login page as a separate method or at least name all you pages and resources uniquely to identify your files form those provided by Novell.
/var/opt/novell/tomcat4/webapps/nidp/jsp/login.jsp
The Logout page:
/var/opt/novell/tomcat4/webapps/nidp/jsp/logoutSuccess.jsp
The easiest way to create a new login page is to copy the default JSP page, rename it, and then modify it to match your requirements. Login requirements:
The default authentication contract is used if the post comes from an external page. Logout links:
The location of the logout page for the Access Gateway:
Files images and JSPs, should look like:
ls -la ... -rw-r--r-- 1 novlwww novlwww 991 Aug 21 08:21 af_login.gif ...
To Change ownership; from the appropriate directory issue:
chown novlwww:novlwww *.*
Files are placed on ALL Identity servers in:
/opt/novell/nids/lib/webapp/jsp
/opt/novell/nids/lib/webapp/images
/var/opt/novell/tomcat4/work/Standalone/localhost/nidp/jsp
JSP Files are placed on ALL LAGs in:
/opt/novell/nesp/lib/webapp/jsp
/opt/novell/nesp/lib/webapp/images
/var/opt/novell/tomcat4/work/Standalone/localhost/nesp/jsp