D G Varunn Raju Posted March 14, 2017 Share Posted March 14, 2017 Hello, I configured a VPN server on NS 11.1 52.13 and configured Radius authentication. I see 2 password fields, but instead we need only 1. From different forums, i tried to configure rewrite policies but it failed to work. I also read on another forum, that if "RFWebUI" theme is used, rewrite policies does not apply. Any leads will be appreciated. TIA Link to comment Share on other sites More sharing options...
Sam Jacobs Posted March 14, 2017 Share Posted March 14, 2017 To hide the second password field, create a new theme based on the RfWebUI theme, and add the following to the bottom of theme.css: div.field:nth-child(4) { display:none;} 5 Link to comment Share on other sites More sharing options...
D G Varunn Raju Posted March 14, 2017 Author Share Posted March 14, 2017 Thank you Sam. Really appreciated. Curious to know what the code does? Link to comment Share on other sites More sharing options...
Sam Jacobs Posted March 14, 2017 Share Posted March 14, 2017 It hides the 4th DIV with the class name of "field" (which just happens to be the second password field). I would much prefer if the NetScaler used ID tags, which, IMO, are cleaner (since ID tags are supposed to be unique), but since this is the hand that was dealt ... :) Link to comment Share on other sites More sharing options...
Patrick Matthews Posted June 1, 2017 Share Posted June 1, 2017 This did the trick for me: I logged into the netscaler via winscp, browsed to these two files: /netscaler/ns_gui/vpn/js/gateway_login_form_view.js /var/netscaler/gui/vpn/js/gateway_login_form_view.js And made one change, which was to comment out the line form.append(field_pass2) So the new code would look like this: if (pwc ==2) { //form.append(field_pass2); } Link to comment Share on other sites More sharing options...
Andor Klink Posted August 2, 2017 Share Posted August 2, 2017 Hi Sam Jacobs, Unfortunately your solution was not an option for us because it also hides the field for New password when your password is expired. Do you have another suggestion how we can accomplish this in the RFwebUi theme? Link to comment Share on other sites More sharing options...
Kenny George Posted February 20, 2019 Share Posted February 20, 2019 Old post but maybe this will help someone - this fixed it for me on NS 12.1 with the RfWebUi. - https://www.tech.xenit.se/remove-password-2-rfwebui/ add rewrite action RWA-RES-REMOVE_2ND_PASSWORD replace_all "HTTP.RES.BODY(99999)" "\"\\r\\n\"+\n\"<style type=\\\"text/css\\\">\\r\\n\"+\n\"[for=\\\"passwd1\\\"] { display: none;}\\r\\n\"+\n\"#passwd1 { display: none; }\\r\\n\"+\n\"</style>\\r\\n\"+\n\"\\r\\n\"+\n\"</body>\\r\\n\"+\n\"</html> add rewrite policy RWP-RES-REMOVE_2ND_PASSWORD "HTTP.REQ.URL.PATH_AND_QUERY.SET_TEXT_MODE(IGNORECASE).EQ(\"/logon/LogonPoint/index.html\")" RWA-RES-REMOVE_2ND_PASSWORD bind vpn vserver <NSGW VSERVER> -policy RWP-RES-REMOVE_2ND_PASSWORD -priority 80 -gotoPriorityExpression NEXT -type RESPONSE For Receiver, workaround #3 fixed it for me: https://support.citrix.com/article/CTX203775 Link to comment Share on other sites More sharing options...
Mark Brilman Posted January 24, 2020 Share Posted January 24, 2020 The rewrite policy for RfWebUI does not work anymore with the latest 13.x versions . Anybody already got a new one ? ;-p Link to comment Share on other sites More sharing options...
eferasi37 Posted September 25, 2020 Share Posted September 25, 2020 The same here, anyone did happen to fix this ? Link to comment Share on other sites More sharing options...
Ted Polestico Posted April 20, 2021 Share Posted April 20, 2021 Hi, I am wondering if there's a fix for NS version 13.. The suggestions above does not seem to work for the new versions. Link to comment Share on other sites More sharing options...
Ken Z Posted August 3, 2023 Share Posted August 3, 2023 bump... this works for the factory default theme, but not if you create a custom RfwebUI theme Regards Ken Z Link to comment Share on other sites More sharing options...
Ken Z Posted August 14, 2023 Share Posted August 14, 2023 also, this doesn't work for the new 14.1 firmware either... ? Regards Ken Z Link to comment Share on other sites More sharing options...
Ken Z Posted September 21, 2023 Share Posted September 21, 2023 Hi for anyone who's also having this issue, it's now been resolved ? I'd opened a support case with Citrix, and they initially sent through a link to an article that's only available to internal staff, so I got them to email me through the correct rewrite policy and action. this is very similar to the one Kenny George posted on page 1, but just different enough to make it work. Rewrite Action add rewrite action RWA-RES-REMOVE_2ND_PASSWORD replace_all "HTTP.RES.BODY(99999)" "\"\\r\\n\"+\n\"<style type=\\\"text/css\\\">\\r\\n\"+\n\"[for=\\\"passwd1\\\"]{ display: none;}\\r\\n\"+\n\"#passwd1 { display: none; }\\r\\n\"+\n\"</style>\\r\\n\"+\n\"\\r\\n\"+\n\"</body>\\r\\n\"+\n\"</html>\\r\\n\"" -search "text(\"</body>\n</html>\")" Note the \\r\\n\"" -search "text(\"</body>\n</html>\")" at the end. I'm guessing that there was an issue with the cut and paste when he pasted this into the text field in the discussion. Rewrite Policy add rewrite policy RWP-RES-REMOVE_2ND_PASSWORD "HTTP.REQ.URL.PATH.CONTAINS(\"/logon/themes/<ModifiedThemeName>/index.html\")" RWA-RES-REMOVE_2ND_PASSWORD NOTE The <ModifiedThemeName> bit. This must be the actual name of your custom RfWebUI theme, So if you created a custom theme called "PiratesRule" then the rewrite policy is add rewrite policy RWP-RES-REMOVE_2ND_PASSWORD "HTTP.REQ.URL.PATH.CONTAINS(\"/logon/themes/PiratesRule/index.html\")" RWA-RES-REMOVE_2ND_PASSWORD I've tested this on the latest 14.1 firmware and it works ? Regards Ken Z Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now