How to Customize Exchange OWA Logon Page to Add Company Logo Using NetScaler

How to Customize Exchange OWA Logon Page to Add Company Logo Using NetScaler

book

Article ID: CTX225864

calendar_today

Updated On:

Description

This article describes how to customize Exchange OWA logon page to add company logo using NetScaler.

Prerequisites

  1. Exchange 2016
  2. Netscaler LB-VSERVER for Exchange
  3. External HTTP site hosting company logo

Sometimes, we want to customize our environment in a way that our users could distinguish that they are login to our Exchange domain, and not another exchange site by mistake. So what's is better than adding our company logo to the Exchange login page. This process could be done on the Exchange site by modifying the login page, but the traid back of doing this is the following:

  1. We need to apply the changes on all the individuals servers of the cluster
  2. We need to reapply all the changes after every Exchange Patch

An easy way to achieve this is let the Netscaler do it for us. How? By using rewrite expression to modify the HTML login page data.

add rewrite action OWA_LOGO_CHNG_RW-Act replace_all "HTTP.RES.BODY(120000).SET_TEXT_MODE(IGNORECASE)" "\"img class=\'mouseHeader\' src=\'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png\' alt=\'OutLook\'\"" -pattern "re~img class=\"mouseHeader\" src=\".*\" alt=\"OutLook\"~"

add rewrite policy OWA_LOGO_CHNG_RW_Pol "HTTP.REQ.URL.CONTAINS(\"logon.aspx\")\n" OWA_LOGO_CHNG_RW-Act

bind lb vserver Exchange -policyName OWA_LOGO_CHNG_RW_Pol -priority 100 -gotoPriorityExpression NEXT -type RESPONSE

Note: Please change https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png with the location of your logo. For the best aesthetic design, it is recommended you use the dimensions of 300x76 for the logo.

Action:

User-added image
Policy:

User-added image

Before Rewrite:

User-added image

After Rewrite:

User-added image

 

Can we add our Self Service password change link on the login page?

We constantly receive requests from customer asking to have their OWA login password to be rested because they forget it, or they don't recall the Self Service password Change URL. We could add a link on the Exchange login page that will redirect the users to the Self Password change page.

add rewrite action OWA_INSERT_CHNG_PASS_RW-Act insert_after_all "HTTP.RES.BODY(120000).SET_TEXT_MODE(IGNORECASE)" "\"</div><div style=\'text-align:left;font-size:50%\'><p><a href=\'https://admin.google.com\'>Forgot Password</a></p>\"" -pattern "re~\\Q<span class=\"signinTxt\"\\E\\s*\\S*\\Q>\\E\\S*\\s*\\S*\\Q</span>\\E~"

add rewrite policy OWA_INSERT_CHNG_PASS_RW_Pol "HTTP.REQ.URL.CONTAINS(\"logon.aspx\")" OWA_INSERT_CHNG_PASS_RW-Act

bind lb vserver Exchange -policyName OWA_INSERT_CHNG_PASS_RW_Pol -priority 90 -gotoPriorityExpression NEXT -type RESPONSE


Note: Please change https://admin.google.com for with address of your Self Service password page.

 

Action:

User-added image

Policy:

User-added image


Before Rewrite:

User-added image

After Rewrite:

User-added image

Note: This customization were tested with OWA 2016

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Issue/Introduction

This article describes how to customize Exchange OWA logon page to add company logo using NetScaler.