This site's design is only visible in a graphical browser that supports web standards, but its content is accessible to any browser or Internet device.
Home > Archives > March 2004

Exchange 2003 Outlook Web Access form-based authentication logon hack Permanent link to this post

I've been busy working on a Microsoft Exchange 2003 upgrade for the past 6 weeks or so (hence the no posts in February thing) and finally rolled a new front-end server into production yesterday. A couple of minor snags along the way, but no major issues to report. What I do want to share is how I went about customizing the Outlook Web Access form-based authentication logon form to allow users to enter their user ID sans any prefixed domain information.

Those with multiple domains need not apply, as this hack assumes the existence of a single domain. Those of you that are not implementing form-based authentication will find little value in this approach. Keep in mind that future SPs and point releases may change/overwrite this file, so always keep backups. All caveats, aside, open up the logon.asp file located on your Exchange 2003 front-end Exchange server in the Exchsvr/Exchweb/bin/auth/[country] folder and:

  1. Rename the 'name' and 'id' attributes of the input element that accepts the user name input to 'username_pre'.
  2. Create a new hidden input element with name and id attributes equal to 'username'.
  3. Change the username.focus() references to username_pre.focus().
  4. Change the label 'username' reference to 'username_pre'
  5. Remove references to 'Domain\' in the form label constants
  6. Add a JavaScript string manipulation function that cleanses the user input text and concatenates domain information to it.
  7. Add an onClick attribute to the submit input element that calls the function above.
Voila! No need for users to worry about the domain. And why should they? It's not important to them - email is. At any rate, hopefully all of this sort of backwoods code manipulation activity goes away when Microsoft realizes the need and creates a simple configuration option in future versions of Exchange. Until then, no reason not to download and implement this hack.

Speed up your download times with CSS Permanent link to this post

The folks over at Evolt.org have put together another fine article about how touse CSS to speed up download times. Prying under the hood of this site you'll see a number of them at work and a handful of them that need to be applied. What's that song about time in a bottle? I could use some of that about now.