Click on Done, save the configuration and TestĬLI commands for the above configuration are as follows:ġ. Bind the policy to the Gateway vServer.ġ1. Click on Create bottom, with the Remove_Password_Action selected in the Action field.ġ0. Create the Action like in the image below, with the following expression 'pwcount= + 1 ' :ĩ. At the Action field, click on Add bottom.Ĩ. You may replace the expression with true (for advanced policy) or ns_true (for classic policy) or other browser specific expressions such as (“User-Agent”).CONTAINS(“Mozilla”)ħ. Edit the fields of the Rewrite Policy like in the image below, with one of the below expressions:įor VPN: '('User-Agent').CONTAINS('AGEE')' :įor this to apply to all Clients, you can simple use the policy expression as 'True'īelow screenshot is just an example. Choose Policy 'Rewrite' and Choose Type 'Response', exactly the same as the image below :ĥ. Go to your Gateway vServer and open the Policies menu.Ĥ. Please follow the below steps, to match the configuration that worked to remove the secondary password field:ġ. Open your NS GUI, click on Configuration and open the NetScaler Gateway section.Ģ. Create the following rewrite policy and action to hide secondary password field from NetScaler Login page.