diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-01-26 17:53:07 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-01-26 17:53:07 -0800 |
commit | 9b212208f79329273e84b28560604011662fed75 (patch) | |
tree | 88f2f13dd8778e1e05e9f928730d4bf8f912848e /templates | |
parent | bc572039bdf355c1d0dfdcde974a55ea392092f1 (diff) | |
parent | b5bb8c35539d1b108e988d39153abc813c326b0f (diff) | |
download | vyatta-cfg-quagga-9b212208f79329273e84b28560604011662fed75.tar.gz vyatta-cfg-quagga-9b212208f79329273e84b28560604011662fed75.zip |
Merge branch 'kenwood' of 192.168.100.1:git/vyatta-cfg-system into kenwood
Diffstat (limited to 'templates')
-rw-r--r-- | templates/system/login/user/node.def | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index d23a397f..751767d6 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -1,9 +1,13 @@ tag: type: txt help: Set user account information + +syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$" + ; "invalid user name $VAR(@)" + +syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_username.pl $VAR(@)" + commit:expression: $VAR(authentication/encrypted-password) != "" || ($VAR(authentication/plaintext-password) != "" && $VAR(authentication/plaintext-password/@) != "") ; "user password must be specified" -syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$" - ; "invalid user name $VAR(@)" |