This article describes how to customize Exchange OWA logon page to add company logo using NetScaler.
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:
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:
Policy:
Before Rewrite:
After Rewrite:
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:
Policy:
Before Rewrite:
After Rewrite:
Note: This customization were tested with OWA 2016