Shabat Closer

Thursday, February 7, 2013

TECH: owa 2007/2010 auto login script (JS)

simple javascript(JS) script to make auto login "outlook web access"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<form action="http://owa.domain.com/auth/owaauth.dll" method="POST"
       name="logonForm" ENCTYPE="application/x-www-form-urlencoded" id="logonFormId">
<input type="hidden" name="destination" value="http://owa.domain.com/">
<input type="hidden" name="flags" value="0">
<input type="hidden" name="forcedownlevel" value="0">
<input id="rdoPrvt" type="radio" name="trusted" value="0" class="rdo" checked><br>
<input id="username" name="username" type="text" value="username@domain.com" ><br>
<input id="password" name="password" type="password" value="userpassword">
<input name="isUtf8" type="hidden" value="1">
<script language="JavaScript">

//Autosubmit the form. Yeah.

document.getElementById('logonFormId').submit();
</script>
</form>
</body>

</html>



Enjoy!

No comments:

Post a Comment