diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-06 21:20:57 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-06 21:20:57 -0700 |
commit | b565e19b831a92a054e9281624f51482d3d9566e (patch) | |
tree | 424669aa2003258e1b2680caf0523c8c0d09b682 /templates/system/syslog | |
parent | 2dce0356cad163f17ca6c30b6f84727f2262e8e6 (diff) | |
download | vyatta-cfg-quagga-b565e19b831a92a054e9281624f51482d3d9566e.tar.gz vyatta-cfg-quagga-b565e19b831a92a054e9281624f51482d3d9566e.zip |
Check that username is valid
Diffstat (limited to 'templates/system/syslog')
-rw-r--r-- | templates/system/syslog/user/node.def | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/system/syslog/user/node.def b/templates/system/syslog/user/node.def index 36799b4c..805abd6a 100644 --- a/templates/system/syslog/user/node.def +++ b/templates/system/syslog/user/node.def @@ -1,6 +1,8 @@ tag: type: txt help: Set logging to specific user's terminal +syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*$" + ; "invalid user name $VAR(@)" commit:expression: $VAR(./@/facility/@@) != ""; "At least one facility must be configured to log messages to user $VAR(./@)" comp_help: Possible completions: <username> Send log messages to this user's terminal |