Access Manager users not getting redirected to protected resource after authenticating

  • 3280834
  • 29-May-2007
  • 26-Apr-2012

Environment


Novell Access Management 3 Linux Novell Identity Server

Situation

Access Manager 3 setup with a Linux Access Gateway (LAG) server and an Indentity server (NIDP). Protected resources were defined on the LAG requiring authentication. Some users, after authenticating, would not get redirected to the Access Gateway protected resource they tried to access, but would get redirected to the IDP portal page at https://:8443/nidp instead.

Resolution

Add the following javascript to the IDP login page

< script language="JavaScript">

var i = 0;
function imageSubmit(elm)
{
if (i == 0)
{
i = 1;
elm.IDPLogin.submit();
}

return false;
}


and change the image input tag to:

name="loginButton2" src="<%= request.getContextPath()
%>/images/btnlogin_en.gif" type="image" value="Login" onClick="return
imageSubmit(this)">

Additional Information

The users were double clicking the login button on the IDP login page when submitting the credentials. The end result is that the credentials would get POSTed twice and the IPD server would redirect to the IDP portal page after recieving the second set of credentials.

The above javascript disabled the login submit tag when it has been hit once.