Create the following rewrite policy and action to hide secondary password field from NetScaler Login page.
Please follow the below steps, to match the configuration that worked to remove the secondary password field:
1. Open your NS GUI, click on Configuration and open the NetScaler Gateway section.
2. Go to your Gateway vServer and open the Policies menu.
3. Click on the + button.
4. Choose Policy "Rewrite" and Choose Type "Response" , exactly the same as the image below :
5. Go to Policy Binding and Click on Add.
6. Edit the fields of the Rewrite Policy like in the image below, with one of the below expressions:
For VPN: "HTTP.REQ.HEADER("User-Agent").CONTAINS("AGEE")" :
For this to apply to all Clients, you can simple use the policy expression as "True"
Below screenshot is just an example. You may replace the expression with true (for advanced policy) or ns_true (for classic policy) or other browser specific expressions such as HTTP.REQ.HEADER(“User-Agent”).CONTAINS(“Mozilla”)
7. At the Action field, click on Add bottom.
8. Create the Action like in the image below, with the following expression "pwcount= + 1" :
9. Click on Create bottom, with the Remove_Password_Action selected in the Action field.
10. Bind the policy to the Gateway vServer.
11. Click on Done, save the configuration and Test
CLI commands for the above configuration are as follows:
1. add rewrite action Remove_Password_Action insert_http_header Set-Cookie "\"pwcount= +1\""
2. add rewrite policy Remove_Password_Policy "HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"AGEE\")" Remove_Password_Action
(or)
add rewrite policy Remove_Password_Policy "HTTP.REQ.HEADER(\"User-Agent\").CONTAINS("Mozilla")" Remove_Password_Action
(or)
add rewrite policy Remove_Password_Policy true Remove_Password_Action
3. bind vpn vserver gw_svr -policy Remove_Password_Policy -priority 100 -gotoPriorityExpression END -type RESPONSE
(or)
bind vpn vserver _XD_my_ngw_443 -policy Remove_Password_Policy -priority 100 -gotoPriorityExpression END -type RESPONSE
Working with Browser :
This rewrite policy works with Web Browser, however it will not functions the same with Receiver.
Resolution:
NOTE: Remember that the "Rewrite" Basic Feature have to be enabled on the NetScaler, to use this policy.
if you use solution below then users are unable to change password if LDAP prompts for it.
If we want to disable the RSA field on first screen on Web Browser as well as on Receiver window ( Including Windows / MAC / IOS / Android ) Receiver , apply the below changes under the LDAP server profile as mentioned in the screenshot :
Uncheck the Authentication tab if its already checked, and then you will find your LDAP logon on logon page and RSA token is on another page separately.