summaryrefslogtreecommitdiff
path: root/templates/system/syslog
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-06 21:20:57 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-04-06 21:20:57 -0700
commitb565e19b831a92a054e9281624f51482d3d9566e (patch)
tree424669aa2003258e1b2680caf0523c8c0d09b682 /templates/system/syslog
parent2dce0356cad163f17ca6c30b6f84727f2262e8e6 (diff)
downloadvyatta-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.def2
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