How to Implement EULA with Authentication VServer

How to Implement EULA with Authentication VServer

book

Article ID: CTX224349

calendar_today

Updated On:

Description

Bind EULA to Auth VServer


Instructions

How to integrate EULA with AAA vserver

As of now we do not have a way to bind EULA to an AAA vserver(We have it only for NSG vserver).

Note:This is possible with customization ,We do not support it.B

Solution:
This involves customization of two files.
1)tmindex_view.js
2)en.xml 

Make a backup copy of /netscaler/ns_gui/vpn/js/tmindex_view.js.
Open the file and search for (please refer to the attached screenshots);
 
var eula_cookie = ns_getcookie("eula");
 User-added image
Insert the following line after it:
 
eula_cookie = true;
User-added image
Now this will insert the option to accept terms and conditions
 
Now to assign the EULA:
 
Go to the /resources directory of the customized theme you are using, and make a backup of the language XML file(s) that you are using (e.g. en.xml for English). Open up the XML file and look for Partition id=”logon” (which contains the text strings for the logon page).

Now, the id for the EULA text is agreement, so to add the EULA, you need to add a line containing that id to the file. You need to make sure that the entire EULA is on one line. You need to make sure that the entire EULA is on one line, and that you HTML-encode any special symbols.
 
 
  </Partition>
  <Partition id="logon">
    <Title>sneha</Title>
    <String id="Welcome">Welcome</String>
    <String id="ctl08_loginAgentCdaHeaderText2">Please log on</String>
    <String id="User_name">User name</String>
    <Property id="Enter user name" property="title">Enter user name</Property>
    <String id="Password">Password</String>
    <String id="Password2">Password 2</String>
    <String id="domain">Domain</String>^M
    <String id="Enter password">Enter password</String>
    <Property id="Log_On" property="value">Log On</Property>
    <String id="You need to enter login name">You need to enter login name</String>
               <String id="Enter_password2_Alert">You need to enter the second password</String>
    <String id="You need to enter passwd">You need to enter password</String>
       <String id="agreement">you are not allowed</String>
       <String id="eula_title">End User License Agreement</String>
               <String id="eula_agreement">I accept the&amp;nbsp;</String>

 Now EULA is reflected as expected:

User-added image

 

Environment

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 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 sample 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 sample code.