by Njål

Outlook Web App 2010 Auto login

Microsoft Exchange Server 2010

This one goes out to all my fans out there. A simple html page that automatically logs you in to Outlook Web App. Handy when webmail is the only thing you have access to, and you canstantly keep getting logged out (since your nazi sysadmin refuses to extend the session timeout period).

<html>
  <body style="display: none">
    <form action="https://exchangeserver.com/owa/auth/owaauth.dll" method="POST" name="logonForm" ENCTYPE="application/x-www-form-urlencoded" id="loginForm">
      <input type="hidden" name="destination" value="https://exchangeserver.com/owa/">
      <input type="hidden" name="username"  value="joe@scrotum.org" >
      <input type="hidden" name="password"  value="Balls_1234$">
      <input type="hidden" name="flags" value="4">
      <input type="hidden" name="forcedownlevel" value="0">
      <input type="radio"  name="trusted" value="4" class="rdo" checked>
      <input type="hidden" name="isUtf8"  value="1">
    </form>
    <script type="text/javascript">
      document.forms["logonForm"].submit();
    </script>
  </body>
</html>

Replace action, destination, username & password. Save this file to your desktop etc. and create a shortcut/bookmark to it. You’re done.

This can also be used to facilitate one-click login into OWA from an intranet etc.