Application Delivery Management
Application Modernization & Connectivity
IT Operations Management
CyberRes
<form method="post" action="https://idp126.lab.novell.com:8443/nidp/app/plogin?id=CustomLoginContract&forceAuth=true">
<p>
<strong>Please enter user ID and password:</strong>
<br>
<strong>User ID</strong>
<input type="text" size="20" name="Ecom_User_ID">
<strong>Password</strong>
<input type="password" size="20" name="Ecom_Password">
<input type="hidden" name="target" value="http://www.novell.com/">
</p>
<p>
<strong>And then click this button:</strong>
<input type="submit" name="login" value="Login">
</p>
</form>
<%! public static String m_TargetDomains[] = { ".novell.com", ".innerweb.novell.com", ".google.com" }; %>
<%@ page import="java.net.URL" %>
<%
UIHandler uh = new UIHandler(request,response);
String url = (String) request.getAttribute("url");
URL u = new URL(url);
String domain = u.getHost().toLowerCase();
boolean validTarget = false;
for (int i = 0; i < m_TargetDomains.length; i ) {
if (domain.endsWith(m_TargetDomains[i])) {
validTarget = true;
break;
}
}
if ( !validTarget ) {
//Log this?
url="/nidp/app/logout";
}
%>