Custom OWA Logon Screen (Full Version)

All Forums >> [Microsoft Exchange 2000] >> Outlook Web Access


adagost -> Custom OWA Logon Screen (8.Oct.2002 4:35:00 PM)

I set up the Logon screen for OWA Windows 2000 as indicated in the main page article. It worked, however here is what happens; I put an exchange id in the box and click OK. It brings up the owa login popup screen which asks for ID, Password and Domain information.

Here is what I am hoping to accomplish; Is there a way to have the ID, Password and Domain information come up on the initial page (from the article)??? I do not want to have to put in the ID twice nor have the ˘default÷ owa, login popup appear. I want to do it all for the OWALogon.asp screen.

How can I do this??

If none of this can be done is there a way to edit the default OWA login popup. I would like to add custom text..and maybe a logo. (Where is this box being stored on the server??)

Thank you very much

pvong -> RE: Custom OWA Logon Screen (30.Jun.2003 5:03:00 AM)

I'm looking for the same thing. Help!

marc2003 -> RE: Custom OWA Logon Screen (30.Jun.2003 8:05:00 PM)

here you go....


<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript1.2>
function owalogin() {
case "":
alert("Please enter your username.");
case "":
alert("Please enter your password.");
var Location="/exchange"; //change this if your owa installation resides somewhere else. you can use full url.
var owa = new ActiveXObject("msxml2.xmlhttp")"get",Location,false, ,login.pass.value )
case 200:
window.location.href = Location;
case 401:
alert("Login failed. Please check username / password and try again.");
alert("Sorry, the server did not respond as expected. Please try again later or contact your system administrator.");
<form name=login action="javascript:owalogin();" method=post>
<p><img src="/exchweb/img/logout-image.gif"></p>
<b>Username</b> <input name="name" size=20 maxlength=16>
<b>Password</b> <input type=password name="pass" size=20 maxlength=16>
<input type="submit" name="okbutton" value="OK">
<body onload="">

save using any filename you want.

you need to have basic authentication set on exchange virtual directory. works with or without ssl. if you do use ssl then it is best to also require encryption for this form, then no modifications will have to be made to it.

only tested on exchange 2k sp3 using ie6.

any questions feel free to ask.

btw i can't write script or html to save my life. but i am good at copy and paste. [Big Grin]

[ August 28, 2003, 10:21 AM: Message edited by: marc2003 ]

pvong -> RE: Custom OWA Logon Screen (30.Jun.2003 9:21:00 PM)

That's awsome! Thanks very much. I'm going to try this tonight after hours. Last 2 stupid questions from a stupid person. Am I suppose to save this file as an ASP file? Am I suppose to store this file in c:\inetpub\wwwroot?

Thank you so very much!

marc2003 -> RE: Custom OWA Logon Screen (30.Jun.2003 11:24:00 PM)

1) no. as i mentioned, save using any filename you want.

2) again no, just need to store it anywhere your users can access from your website. eg root, subfolder or virtual directory.

jbarsodi -> RE: Custom OWA Logon Screen (30.Jun.2003 11:50:00 PM)

how can I extend the length of the username field so that my users can input domain\username in there?

jbarsodi -> RE: Custom OWA Logon Screen (1.Jul.2003 12:13:00 AM)

Excuse my stupid question, I figured it out. I was over looking the html for the form.

jbarsodi -> RE: Custom OWA Logon Screen (1.Jul.2003 1:03:00 AM)

What about since we have to input the username like this "domain\user" is there anyway to code in the variable and have it passed also, I tried that and I also tried creating a hidden input with the value I needed then added it to the string that is passed and it didn't work either, any help would be much appreciated.

pvong -> RE: Custom OWA Logon Screen (1.Jul.2003 5:33:00 AM)

I think I'm asking the same question jbarsodi is asking. This works with domain/user and I was wondering if there was something I cand modify in the script where it will auto add the domain for me. Maybe something that will the domain for you right before the username when you hit the OK button. I really don't know codes, so if you know of an answer, please give a sample code! Thanks!

marc2003 -> RE: Custom OWA Logon Screen (1.Jul.2003 6:01:00 AM)

forgive my ignorance but i really do not know what you are trying to do? you do not need to use the format domain\username. just the username will suffice.

for example my internal network is named domain.local but i host owa externally using a proper domain name and i can login fine from the internet just entering my username and password.

the only time i would imagine you would need to enter your domain details, would be if you had multiple domains on your internal network. if that is the case - sorry can't help [Confused]

saying that though it should be easy enough for you to find out how to append text to strings using javascript. good luck [Cool]

[ July 01, 2003, 07:02 AM: Message edited by: marc2003 ]

jbarsodi -> RE: Custom OWA Logon Screen (1.Jul.2003 8:19:00 PM)

I got it to work pvong.

Here's what I did.

I actually had to make changes in IIS.
I have a front-end/back-end implementation with users logging into OWA on the frontend server. I added the local domain, the one that we normally have to type in the "domain\username" in the security for IIS.

What you do is right click the exchange Virtual Directory where your OWA is installed->Properties->Directory Security Tab->Click on the edit button for Authentication control
Check Basic Authentication if it's unchecked,uncheck all the rest, then click the "edit" button and for Domain name enter your domain. OK out of there and you should be set.

I had to add it to both my IIS servers on both of my Exchange servers, since users are Authenticating to my front-end server then access the mailbox which is located on the back-end server.


pvong -> RE: Custom OWA Logon Screen (1.Jul.2003 8:40:00 PM)

Awsome, it works!

Thanks John and Thanks Marc!

jbarsodi -> RE: Custom OWA Logon Screen (2.Jul.2003 1:42:00 AM)

ran into a snag. The js doesn't execute properly with IE browsers other than IE6. I'm looking into a fix.

it has to do with this line:
var owa = new ActiveXObject("msxml2.xmlhttp") 

pvong -> RE: Custom OWA Logon Screen (2.Jul.2003 3:24:00 PM)


Yeah, you're right. I just tested it myself and got the same problem. I even tested it with Netscape and that didn't work either. I don't understand any of those codes, but I'll assume the codes are set up to work with IE only and no other type of browser. Please keep me up to date on a fix. Thanks!


marc2003 -> RE: Custom OWA Logon Screen (2.Jul.2003 6:43:00 PM)

i don't really understand the code either! but i do know that activex is only used by microsoft as no body else thinks it is worth it. you can check out what opera thinks -

no doubt netscape will say the same.

maybe now is the time to come clean. i actually got the main script from! but it was on their chinese website. you can view the original source here (you need to install the chinese language pack when prompted). also the page takes some time to load.

i really wouldn't expect it to work in any other browser - that's why i mentioned in original post only tested on ie6.

but you could use a browser detection script to redirect your users to a different page (say /exchange to get default browser authentication box) if using a non microsoft browser. you could maybe try modifying one of these scripts for your needs.


[ July 02, 2003, 06:49 PM: Message edited by: marc2003 ]

jbarsodi -> RE: Custom OWA Logon Screen (2.Jul.2003 7:12:00 PM)

I found that same source marc. nice [Wink]

None of my users have browsers other than IE. The problem I found is that if they aren't patched. It won't work on some IE5.5 browsers and others it does. The difference being the level of patching going on.

jbarsodi -> RE: Custom OWA Logon Screen (2.Jul.2003 7:14:00 PM)

Marc, the code is a great find. It perfect for what I am trying to implement for my users. Just that with almost anything you find, the necessary tweaks need to be found.

I will continue to work on this one and find a solution.

marc2003 -> RE: Custom OWA Logon Screen (3.Jul.2003 1:58:00 AM)

try this. i've tested on the standard ie5 shipped with windows 98 se with no patches and it works. add the following code to the body section of your page


<object id="MSXML3"
classid="clsid: f5078f32-c551-11d3-89b9-0000f81fe221"
STYLE="display: none">

you then need to download this and extract to the same folder as your page

lastly - and this is the worst part - your users will prompted to install the plugin (unless microsoft is already a trusted publisher within ie options). much the same as when you install the flash plugin for the first time.

try it and see how you get on. btw it has no affect on ie6 as the component must already be installed.

[ July 03, 2003, 02:10 AM: Message edited by: marc2003 ]

pvong -> RE: Custom OWA Logon Screen (3.Jul.2003 4:26:00 AM)

OK, stupid question again from someone who knows nothing about codes. Marc, where do I paste this into the code? I pasted the code right after
in the code. Is this OK? Now I have to find a computer with IE5.

marc2003 -> RE: Custom OWA Logon Screen (3.Jul.2003 7:11:00 AM)

nope, it needs to be at the bottom of the page after the following statement

<body onload="">

it then needs to followed by the </body> tag

so the very last lines in the page should look something like


<body onload="">

<object id="MSXML3"
classid="clsid: f5078f32-c551-11d3-89b9-0000f81fe221"
STYLE="display: none">


[ July 03, 2003, 07:35 AM: Message edited by: marc2003 ]

Page: [1] 2   next >   >>