Okay so you have enabled Forms-based Authentication (FBA) and your users can now logon to Outlook Web Access (OWA) 2003 either by typing domain\username or username@domain.com. But ever since you enabled FBA your users have found it annoying they can’t type username anymore, the other day even the CEO told you his opinion about it, and he definitely wasn’t satisfied so you better come up with a solution. | |
You probably already tried to replace the backslash “\ “ (which replaces the domain name when enabling FBA) with your Active Directory NetBIOS domain under the authentication settings of the Exchange virtual folder in the Internet Information Services (IIS) Manager, but only to find out that the changes you applied were being reset with a backslash “\” every 15 minutes or doing a reboot.
Figure 1: Authentication Method Settings in System Manager when FBA is enabled
Figure 2: Authentication Method Settings in IIS Manager when FBA is enabled
Well this is how Exchange 2000/2003 was designed; the behaviour is actually controlled by what is known as the Directory Service/Metabase Synchronization process (DS2MB process). In short the DS2MB process overwrites new configuration information in the local metabase (the metabase is kind of a registry for IIS) with configuration information that was last set in Active Directory by using the Exchange System Manager snap-in.
Note
For more information about the DS2MB process, see the Relevant reading section in the end of the article.
This means you should always strive to change any authentication related settings through the Exchange System Manager and not through the IIS Manager (even though it actually is possible to change them through the IIS Manager!)
Customizing the Logon.asp file
So how can we solve this problem? Well if some of your customers use SBS 2003, you may have noticed that you can logon to your mailbox by simply typing username instead of domain\username or username@domain.com. If you look carefully you can actually see OWA inserts your Active Directory NetBIOS domain name automatically when logging on. How does this magic occur? I hear you grumble. Well the magic lies within the Logon.asp, which is the file behind the FBA logon page, this file is located under:
C:\Program Files\Exchsrvr\exchweb\bin\auth\usa (or your language specific folder)
Note
In this article we will focus on the Logon.asp file for US English located in the USA folder
(C:\Program Files\Exchsrvr\exchweb\bin\auth\usa.)
When dealing with ordinary Exchange 2003 Servers, we can make a similar trick. In order to accomplish our goal we need to edit the Logon.asp file, therefore browse to and open the Logon.asp file in notepad (remember to make a backup of the file before editing it!). Find below code by pressing CTRL+F then search for <% If g_fIsMSIE5Rich Then %> (Now press Find or F3 twice!):
<% If g_fIsMSIE5Rich Then %>