How to add text message on Gateway logon page that AAA authentication enabled.

How to add text message on Gateway logon page that AAA authentication enabled.

book

Article ID: CTX285214

calendar_today

Updated On:

Description

In AAA authentication profiled configured Gateway Virtual server, you may found the rewrite policy method to add some texts on Netscaler Gateway logon page is no longer effective. 
This is because the portal layout mechanism is changed compared with basic authentication policy scenario.

Before we go, please check below Prerequisites:
1: Citrix ADC version should be either of 12.1, 13.0,13.1
2: You have already running Citrix Gateway Virtual Server and authentication is enabled with AAA virtual server
3: Portal theme is ONLY RfWebUi type supported.

In basic authentication scenario: working Rewrite policy like below(Just FYI, not related to this KB configuration) :
add rewrite action rw_act_insert_loginfooter insert_after_all "HTTP.RES.BODY(120000).SET_TEXT_MODE(IGNORECASE)" q{"var login_footer=$(\"<div style='color:yellow;font-size:15px;'>Insert Code Here</div>\").appendTo(logonbelt_bottomshadow);"} -pattern ".attr(\'id\',\'logonbelt-bottomshadow\');"
add rewrite policy rw_pol_insert_loginfooter "HTTP.REQ.URL.CONTAINS(\"gateway_login_form_view.js\")" rw_act_insert_loginfooter


Instructions

a. create a new loginSchema xml file via ADC CLI shell console.
cp /nsconfig/loginschema/LoginSchema/SingleAuth.xml  /nsconfig/loginschema/custom.xml

b. Modify new login Schema xml file to append below blue color code before "</Requirements>" like:
......
<Requirement><Credential><ID>notice</ID><SaveID>notice</SaveID><Type>notice</Type></Credential>
<Label><Text>Any comments you want to displayed in Login page</Text><Type>plain</Type></Label>
</Requirement>

</Requirements>
.....

c. create login schema profile with newly created xml file
add authentication loginSchema custom_pfl -authenticationSchema "/nsconfig/loginschema/custom.xml"

NOTE:Once xml files is modified, do remeber manually to run again this command to apply the change.

d. create login schema policy new newly created profile.
add authentication loginSchemaPolicy custom_LSPol -rule true -action custom_pfl

e. bind login schema policy to AAA virtual server.
bind authentication vserver AAAAuth -policy custom_LSPol -priority 100 -gotoPriorityExpression END

f. create a new portal theme based on RfWebUI and apply it into Cirix Gateway Virtual Server.
add portaltheme RFWeb_New basetheme RfWebUI
bind vpn vserver VserverName -portaltheme RFWeb_New


g.modify /var/netscaler/logon/themes/RFWeb_New/css/theme.css like below :
.credentialform .standaloneText {
    color: orange;
    position: absolute;
    width1200px;
    left300px;
    text-align: center;
    word-break: break-all;
}

Finally. Here is  a screenshot desired output.

image.png

 

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

How to add text message on Gateway logon page that AAA authentication enabled.

Additional Information

https://www.mycugc.org/search?executeSearch=true&SearchTerm=adding-text&l=1