CTX118305
NetScaler Gateway
Access Gateway 10
Configuration
2016-04-15
2014-04-11
This article describes how to customize the logon page for Access Gateway Enterprise Edition starting with build 59.6.

Objective

This article describes how to customize the logon page for Access Gateway Enterprise Edition starting with build 59.6.

Upper Left Logo

??User-added image
The Upper left logo is located in the /netscaler/ns_gui/vpn/images directory in the ctxHeader01.gif file.
The file is referenced on the cascading style sheet page under /netscaler/ns_gui/vpn/images called caxtonstyle.css on line 70:
background-image: url(/vpn/images/ctxHeader01.gif);

Bottom Center Watermark

User-added image

The Bottom center watermark is located in the /netscaler/ns_gui/vpn/images directory in the CitrixWatermark.gif file.
The file is referenced on the cascading style sheet page under /netscaler/ns_gui/vpn/images called caxtonstyle.css on line 93:
background-image: url(/vpn/images/CitrixWatermark.gif);

Welcome and User name Text

??User-added image
The welcome text is located in the /netscaler/ns_gui/vpn/index.html file starting on line 45:
<div id="ctl08_loginAgentCdaHeaderText" style="padding-left:15px">Welcome</div>

Changing the Password Fields

??User-added image

The login.js file can be edited to update the user name and password fields in the /netscale/ns_gui/vpn directory.
Line 81 is for the password field Password and line 86 is for password field Password 2 if you are using dual authentication.

Instructions

Because all files in the /netscaler/ns_gui directory are overwritten after the appliance restarts or power cycle, you must create a script that runs at startup to copy the updated files back to the directories mentioned in the preceding sections.

To ensure that customization changes are retained after a restart, complete the following procedure:
  1. Connect to the appliance using a secure FTP client such as WinSCP.

  2. Open the /var directory.

  3. Ensure that the updated portal.ccs and corporate logo files are in the var/vpn/vpn/images directory.

  4. Ensure that the updated index.html and login.js files are in the /var/vpn/vpn directory.
    Now that the files are in the var directory, open a SSH session using PuTTY to the appliance.

  5. Type shell to open a shell session.

  6. Because all customizations are lost when you restart the appliance, you must create a rc.netscaler script. Open the /nsconfig/ or /flash/nsconfig/ directory.

  7. Create or open the rc.netscaler shell script by including a copy command to copy the customized files:
    cd /netscaler/ns_gui
    cp -r /var/vpn/vpn vpn/

  8. Repeat the preceding steps on the secondary appliance.


Disclaimer

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the code.

Applicable Products


 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.