Hello,

I have a web application and I want to use SSO.
Build an form fill, but the auto submit does not work.
I saw this post http://tinyurl.com/lr6xmwg and tried the solution but
that did also not work.

NAM Access Gateway Service
Version 4.0.110

This is the page of the webapp:

<html>
<head>
<title>TOPdesk</title>
<meta http-equiv="Content-Type"content="text/html;
charset=iso-8859-1">
<link rel="SHORTCUT ICON" href="/favicon.ico">
<link rel="stylesheet"
href="/tas/css/login.css?timestamp=1343049786000" type="text/css">


<!--[if (gte IE 5.5)&(lt IE 7)]>
<link rel="stylesheet"
href="/tas/css/iepng.css?timestamp=1343049786000" type="text/css">
<![endif]-->

<script type="text/javascript">
<!--

if (top != window)
{
var p = window;
var highest = null;
while (true)
{
p = p.parent;
if (p.location.protocol == window.location.protocol &&
p.location.host == window.location.host &&
p.location.pathname.match(/^\/tas\/public/))
{
highest = p;
}

if (p == top)
{
break;
}
}

if (highest)
{
highest.location.href = highest.location.href;
}
}

function focusLogin() {
document.getElementById('loginname').focus();
}

//-->
</script>
</head>
<body scroll="no" onload="focusLogin()">
<table height="100%" width="100%">
<tr>
<td class="top" ><div class="bar"></div></td>
</tr>
<tr>
<td class="bottom" style="height: 50%;color:white; font-weight:bold;
text-align:center; background: #d21242;"">

</td>
</tr>
</table>
<table class="overlay">
<tr>
<td class="overlaySideColumn">
</td>
<td class="overlayCentreColumn">
<table>
<tr><td class="logo">
<a href="http://TOPdesk" title="" target="_blank"><span><img
src="/tas/image?key=logochanger.login_logo" style="width: 200px; height:
85px;"></span></a>
</td></tr>
<tr><td class="dialogSurroundingCell">
<form class="dialog" method="POST" border="0" borderwidth="1"
action="/tas/public/j_security_check;jsessionid=1wyx5vvjyq0bl4wqo43ghm uhz"
style="margin-left: auto; margin-right: auto">
<input type="hidden" name="j_redirecturl"
value="http://xx.xx.xx.xx/tas/public/index.jsp">
<table class="tt" height="100%" width="100%">
<tr height="100%">
<td rowspan="6"><div class="dialog-margin-left"></div></td>
<td colspan="2" class="welcome" valign="top"><div
class="dialog-margin-top"></div>Welcome<br>Bienvenue<br>Welkom<br>Benvenuto</td>
<td rowspan="6"><div class="dialog-margin-right"></div></td>
</tr>
<tr>
<td></td>
<td>

</td>
</tr>
<tr>
<td colspan="2">
<table height="100%" width="100%">
<tr>
<td colspan="3">
<div class="logintitle">
<span class="label"><nobr>SelfserviceDesk</nobr></span>
</div>
</td>
</tr>
</table>
<td>
</tr>
<tr>
<td colspan="2">
<table height="100%" width="100%">
<tr>
<td>
<span class="label"><nobr>Username*</nobr></span>
</td>
<td>
&nbsp;&nbsp;
</td>
<td width="160">
<input type="text" class="value" id="loginname"
name="j_username">
</td>
</tr>
<tr>
<td>
<span class="label"><nobr>Password*</nobr></span>
</td>
<td>
&nbsp;&nbsp;
</td>
<td>
<input type="password" class="value" name="j_password">
</td>
</tr>
</table>
</td>
</tr>
<tr>

<td colspan="2" align="center">
<div class="before-check"></div>
<div class="flatcheckbox">
<input type="checkbox" id="j_remember_password"
name="j_remember_password">
<div class="outerborder" onclick="var cb =
document.getElementById('j_remember_password'); cb.checked =
!cb.checked;">&nbsp;</div>
<div class="innerborder" onclick="var cb =
document.getElementById('j_remember_password'); cb.checked =
!cb.checked;">&nbsp;</div>
<label for="j_remember_password">Remember My
Password&nbsp;</label>
</div>
<div class="after-check"></div>
</td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit"
class="button" name="submit" value="Login"><input type="button"
id="cancel" class="button" name="cancel" value="Cancel"></td>
</tr>
<tr>
<td colspan="2"><div class="dialog-margin-bottom"></div></td>
</tr>
</table>
</form>
</td></tr>
</table>
</td>
<td class="overlaySideColumn">
</td>
</tr>
</table>


<script type="text/javascript">
<!--
document.getElementById("loginname").focus();

var doCancel = function() {
window.location="/index.jsp";
};

var cancelButton = document.getElementById("cancel");
if (cancelButton.addEventListener) {
cancelButton.addEventListener("click", doCancel, false);
}
else {
cancelButton.attachEvent("onclick", doCancel);
}
//-->
</script>
</body>
</html>

Regards,

Dirk


--
dlaan
------------------------------------------------------------------------
dlaan's Profile: https://forums.netiq.com/member.php?userid=1089
View this thread: https://forums.netiq.com/showthread.php?t=50232