OWA domain
Download our own modified
owalogon.asp. Replace variables
as needed :-)
Tip from the net. Copied form:
http://www.msexchange.org/pages/article.asp?id=684
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 %>
<BODY scroll="AUTO" bgColor="#3D5FA3" text="#000000" leftMargin=0
topMargin=0>
<FORM action="/exchweb/bin/auth/owaauth.dll" method="POST"
name="logonForm" autocomplete="off">
<% Else %>
<BODY scroll="AUTO" bgColor="#FFFFFF" text="#000000"
onload="window.document.logonForm.username.focus()">
<FORM action="/exchweb/bin/auth/owaauth.dll" method="POST"
name="logonForm">
<% End If %>
In above code you should replace both instances of:
<FORM action="/exchweb/bin/auth/owaauth.dll" method="POST"
name="logonForm" autocomplete="off">
With below piece of code:
<script Language=javascript>
<!--
function logonForm_onsubmit()
{
if (logonForm.username.value.indexOf("@") !=-1)
{
return true;
}
logonForm.username.value = "NetBIOS domain here\\" + logonForm.username.value;
return false;
}
//-->
</script>
<FORM action="/exchweb/bin/auth/owaauth.dll" method="POST" name="logonForm" autocomplete="off" onsubmit="logonForm_onsubmit()">
Remember to replace NetBIOS domain here in above code with
your own NetBIOS domain name (if your DNS name were Testdomain.com your
NetBIOS name would be Testdomain.)
|