Attention: The information on this post is applicable ONLY on Netscaler running firmware 10.1. and above…
If you are running older firmware then you need to check this!

For the default English language, the User Name, Password 1, and Password 2 labels are defined in the /netscaler/ns_gui/vpn/resources/en.xml file. These labels are referred to in the /netscaler/ns_gui/vpn/login.js. If you have configured dual authentication, then you need to modify both files.

Replace the Password 1 label with Password

Open /netscaler/ns_gui/vpn/login.js file and you’ll see the following:

function ns_showpwd()
var pwc = ns_getcookie(“pwcount”);
document.write(‘<TR><TD align=right style=”padding-right:10px;white-space:nowrap;”><SPAN>’ + _(“Password”));

if ( pwc == 2 ) { document.write(‘&nbsp;1’); }
document.write(‘<TD colspan=2 style=”padding-right:8px;”><input type=”Password” title=”‘ + _(“Enter password”) + ‘” name=”passwd” size=”30″ maxlength=”32″ style=”width:100%;”></TD></TR>’);

if ( pwc == 2 ) {
document.write(‘<TR><TD align=right style=”padding-right:10px;white-space:nowrap;”><SPAN>’ + _(“Password2″) + ‘</SPAN></TD> <TD colspan=2 style=”padding-right:8px;”><input type=”Password” title=”‘ + _(“Enter password”) + ‘” name=”passwd1″ size=”30″ maxlength=”32″ style=”width:100%;”></TD></TR>’);

Now, you need to replace document.write(‘&nbsp;1’), highlighted in bold font for your reference, with document.write(‘&nbsp;’).
Notice that “1” is removed from the function call parameter. Save the file!

Replace the Password 2 label with Token

Open netscaler/ns_gui/vpn/resources/en.xml file, and look for:

<String id=”Password”>Password</String>
<String id=”Password2”>Password 2:</String>

Now replace “Password 2:” with “Token:” as follow:

<String id=”Password”>Password</String>
<String id=”Password2”>Token:</String>

Well 😉 that’s it, So let’s make the Changes persistant by:

1. Create the directory “ns_gui_custom” by typing this:
mkdir /var/ns_gui_custom

2. Now it’s time to create the “customtheme.tar.gz file”. In order to get all the needed files into the theme and keep the stored path at the right level, you need to change to the “netscaler” directory by typing the following:
cd /netscaler

and then tar the contents of the /ns_gui symbolic link to the custom theme file by doing this:
tar -cvzf /var/ns_gui_custom/customtheme.tar.gz ns_gui/*

3. Head back into the Web Netscaler GUI,

expand the Netscaler Gateway node select Global Settings First column in the right pane is settings, click on “Change Global Settings” Switch to the ‘Client Experience’ tab click the pull-down box to set the UI Theme to be ‘Custom’ then click ‘ok’

or from the CLI type:
set vpn parameter -UITHEME Custom

You should be good to go by now 😉