From 19bb0be1ded86e946c2415d6f19619605a926da2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 26 Mar 2009 11:53:43 -0700 Subject: Fix regex in password checks Missing end of match --- .../ip/rip/authentication/md5/node.tag/password/node.def | 2 +- interface-templates/ip/rip/authentication/plaintext-password/node.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def index 1d675b0b..723bd94a 100644 --- a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def +++ b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def @@ -1,6 +1,6 @@ type: txt help: Set authentication password -syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}" ; "MD5 key must be 16 characters or less" +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "MD5 key must be 16 characters or less" update:vyatta-vtysh \ -c "configure terminal" -c "interface $IFNAME" \ diff --git a/interface-templates/ip/rip/authentication/plaintext-password/node.def b/interface-templates/ip/rip/authentication/plaintext-password/node.def index f4fefb78..595ae910 100644 --- a/interface-templates/ip/rip/authentication/plaintext-password/node.def +++ b/interface-templates/ip/rip/authentication/plaintext-password/node.def @@ -1,6 +1,6 @@ type: txt help: Set plain text password -syntax:expression: pattern $VAR(@) "^[^[:space:]{1,16}$" ; "Password must be 16 characters or less" +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "Password must be 16 characters or less" commit:expression: $VAR(../md5/) == "" ; "md5 password already set" update: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \ -- cgit v1.2.3