summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-04 17:41:46 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-04 17:41:46 -0800
commit492ebed32cf9c08626a4f45fc2aa5e1d90dbad1a (patch)
tree96fc2d971c979fb5c0aa886875134f877247e5f7
parentda7bc447e57c30325596e84d2a02ec5a64cf06d1 (diff)
downloadvyatta-cfg-quagga-492ebed32cf9c08626a4f45fc2aa5e1d90dbad1a.tar.gz
vyatta-cfg-quagga-492ebed32cf9c08626a4f45fc2aa5e1d90dbad1a.zip
add commit check for user password
-rw-r--r--templates/system/login/user/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def
index 6c5a5c2a..ea037362 100644
--- a/templates/system/login/user/node.def
+++ b/templates/system/login/user/node.def
@@ -1,6 +1,9 @@
tag:
type: txt
help: User account information
+commit:expression: $VAR(authentication/encrypted-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(@)"
# line continuation and $() expansion are done by cli, not sh.
# need mandatory encrypted password.