From 82b50b961a42d52ea6945e54e0e0dfc88ff4a5e3 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 14 Feb 2008 16:43:07 -0800 Subject: Fix 2819 Plain-text authentication should be identified as such. --- .../vrrp/vrrp-group/node.tag/authentication/password/node.def | 7 +++++++ .../node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def | 7 ++++--- .../vrrp/vrrp-group/node.tag/authentication/password/node.def | 7 +++++++ .../node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def | 7 ++++--- 4 files changed, 22 insertions(+), 6 deletions(-) (limited to 'templates/interfaces/ethernet') diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def index 412d8274..63f1bc32 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def @@ -1,2 +1,9 @@ type: txt help: Password text +syntax:expression: exec " \ + if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ + echo Password must be 8 characters or less ; \ + exit 1 ; \ + fi ; " +comp_help: possible completions: + Password (8 characters or less) diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def index 33fbdae9..d8e157d3 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def @@ -1,6 +1,7 @@ type: txt help: Authentication type -syntax:expression: $VAR(@) in "simple", "AH", "ah"; "authentication must be simple or AH" +syntax:expression: $VAR(@) in "plaintext-password", "ah"; \ + "authentication must be simple or ah" comp_help: possible completions: - simple Set simple password mode - AH Set IP Authentication Header mode + plaintext-password Set plain text password mode + ah Set IP Authentication Header mode diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def index 412d8274..63f1bc32 100644 --- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/password/node.def @@ -1,2 +1,9 @@ type: txt help: Password text +syntax:expression: exec " \ + if [ `echo -n $VAR(@) | wc -c` -gt 8 ]; then \ + echo Password must be 8 characters or less ; \ + exit 1 ; \ + fi ; " +comp_help: possible completions: + Password (8 characters or less) diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def index 33fbdae9..32a802d5 100644 --- a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/authentication/type/node.def @@ -1,6 +1,7 @@ type: txt help: Authentication type -syntax:expression: $VAR(@) in "simple", "AH", "ah"; "authentication must be simple or AH" +syntax:expression: $VAR(@) in "plaintext-password", "ah"; \ + "authentication must be simple or ah" comp_help: possible completions: - simple Set simple password mode - AH Set IP Authentication Header mode + plaintext-password Set plain text password mode + ah Set IP Authentication Header mode -- cgit v1.2.3