• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Custom OWA Logon Screen

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2000] >> Outlook Web Access >> Custom OWA Logon Screen Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Custom OWA Logon Screen - 8.Oct.2002 4:35:00 PM   
adagost

 

Posts: 26
Joined: 8.Aug.2001
Status: offline
I set up the Logon screen for OWA Windows 2000 as indicated in the msexchange.org 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
Post #: 1
RE: Custom OWA Logon Screen - 30.Jun.2003 5:03:00 AM   
pvong

 

Posts: 264
Joined: 19.Aug.2002
From: Baltimore, MD
Status: offline
I'm looking for the same thing. Help!

(in reply to adagost)
Post #: 2
RE: Custom OWA Logon Screen - 30.Jun.2003 8:05:00 PM   
marc2003

 

Posts: 82
Joined: 25.May2003
From: england
Status: offline
here you go....

code:
  

<html>
<title>Login</title>
<head>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript1.2>
<!--
function owalogin() {
switch(document.login.name.value){
case "":
alert("Please enter your username.");
document.login.name.focus()
break;
default:
switch(document.login.pass.value){
case "":
alert("Please enter your password.");
document.login.pass.focus()
break;
default:
var Location="/exchange"; //change this if your owa installation resides somewhere else. you can use full url.
var owa = new ActiveXObject("msxml2.xmlhttp")
owa.open("get",Location,false,login.name.value ,login.pass.value )
owa.send()
switch(owa.status){
case 200:
window.location.href = Location;
break;
case 401:
alert("Login failed. Please check username / password and try again.");
document.login.reset();
document.login.name.focus()
break;
default:
alert("Sorry, the server did not respond as expected. Please try again later or contact your system administrator.");
document.login.reset();
document.login.name.focus()
break;
}
}
}
}
//-->
</SCRIPT>
</head>
<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">
</form>
<body onload="document.login.name.focus()">
</html>

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 ]

(in reply to adagost)
Post #: 3
RE: Custom OWA Logon Screen - 30.Jun.2003 9:21:00 PM   
pvong

 

Posts: 264
Joined: 19.Aug.2002
From: Baltimore, MD
Status: offline
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!

(in reply to adagost)
Post #: 4
RE: Custom OWA Logon Screen - 30.Jun.2003 11:24:00 PM   
marc2003

 

Posts: 82
Joined: 25.May2003
From: england
Status: offline
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.

(in reply to adagost)
Post #: 5
RE: Custom OWA Logon Screen - 30.Jun.2003 11:50:00 PM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
how can I extend the length of the username field so that my users can input domain\username in there?

(in reply to adagost)
Post #: 6
RE: Custom OWA Logon Screen - 1.Jul.2003 12:13:00 AM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
Excuse my stupid question, I figured it out. I was over looking the html for the form.

(in reply to adagost)
Post #: 7
RE: Custom OWA Logon Screen - 1.Jul.2003 1:03:00 AM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
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.

(in reply to adagost)
Post #: 8
RE: Custom OWA Logon Screen - 1.Jul.2003 5:33:00 AM   
pvong

 

Posts: 264
Joined: 19.Aug.2002
From: Baltimore, MD
Status: offline
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!

(in reply to adagost)
Post #: 9
RE: Custom OWA Logon Screen - 1.Jul.2003 6:01:00 AM   
marc2003

 

Posts: 82
Joined: 25.May2003
From: england
Status: offline
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 ]

(in reply to adagost)
Post #: 10
RE: Custom OWA Logon Screen - 1.Jul.2003 8:19:00 PM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
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.

HTH,
John

(in reply to adagost)
Post #: 11
RE: Custom OWA Logon Screen - 1.Jul.2003 8:40:00 PM   
pvong

 

Posts: 264
Joined: 19.Aug.2002
From: Baltimore, MD
Status: offline
Awsome, it works!

Thanks John and Thanks Marc!

(in reply to adagost)
Post #: 12
RE: Custom OWA Logon Screen - 2.Jul.2003 1:42:00 AM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
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:
code:
var owa = new ActiveXObject("msxml2.xmlhttp") 


(in reply to adagost)
Post #: 13
RE: Custom OWA Logon Screen - 2.Jul.2003 3:24:00 PM   
pvong

 

Posts: 264
Joined: 19.Aug.2002
From: Baltimore, MD
Status: offline
John,

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!

pvong

(in reply to adagost)
Post #: 14
RE: Custom OWA Logon Screen - 2.Jul.2003 6:43:00 PM   
marc2003

 

Posts: 82
Joined: 25.May2003
From: england
Status: offline
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 -

http://www.opera.com/support/search/supsearch.dml?index=415

no doubt netscape will say the same.

maybe now is the time to come clean. i actually got the main script from microsoft.com! 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.

http://www.microsoft.com/china/community/TechZone/faq/owalogin.asp

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.

http://www.dynamicdrive.com/dynamicindex9/browsersniffer.htm

or

http://www.dynamicdrive.com/dynamicindex9/bredirect.htm

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

(in reply to adagost)
Post #: 15
RE: Custom OWA Logon Screen - 2.Jul.2003 7:12:00 PM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
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.

(in reply to adagost)
Post #: 16
RE: Custom OWA Logon Screen - 2.Jul.2003 7:14:00 PM   
jbarsodi

 

Posts: 104
Joined: 22.Oct.2001
From: Sparks, NV
Status: offline
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.

(in reply to adagost)
Post #: 17
RE: Custom OWA Logon Screen - 3.Jul.2003 1:58:00 AM   
marc2003

 

Posts: 82
Joined: 25.May2003
From: england
Status: offline
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

code:
  

<object id="MSXML3"
classid="clsid: f5078f32-c551-11d3-89b9-0000f81fe221"
codebase="msxml3.cab#version=8,10,8308,0"
type="application/x-oleobject"
STYLE="display: none">
</object>

you then need to download this and extract to the same folder as your page
http://download.microsoft.com/download/xml/SP/3.20/W9X2KMeXP/EN-US/msxml3sp2cab.exe

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 ]

(in reply to adagost)
Post #: 18
RE: Custom OWA Logon Screen - 3.Jul.2003 4:26:00 AM   
pvong

 

Posts: 264
Joined: 19.Aug.2002
From: Baltimore, MD
Status: offline
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.

(in reply to adagost)
Post #: 19
RE: Custom OWA Logon Screen - 3.Jul.2003 7:11:00 AM   
marc2003

 

Posts: 82
Joined: 25.May2003
From: england
Status: offline
nope, it needs to be at the bottom of the page after the following statement

code:
  
<body onload="document.login.name.focus()">

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

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

code:
.....</form>

<body onload="document.login.name.focus()">

<object id="MSXML3"
classid="clsid: f5078f32-c551-11d3-89b9-0000f81fe221"
codebase="msxml3.cab#version=8,10,8308,0"
type="application/x-oleobject"
STYLE="display: none">
</object>

</body>
</html>



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

(in reply to adagost)
Post #: 20

Page:   [1] 2   next >   >> << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2000] >> Outlook Web Access >> Custom OWA Logon Screen Page: [1] 2   next >   >>
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter