summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-03 12:07:39 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-03 12:07:39 -0800
commitd6700685673efd8ebb932d85a70626f6d1eb181e (patch)
treeabf7f0627747f12df17a73c7c57d71fc5798c211 /templates/system
parenta83faa7789ddb8c930a973774e5cedf062e10919 (diff)
downloadvyatta-cfg-quagga-d6700685673efd8ebb932d85a70626f6d1eb181e.tar.gz
vyatta-cfg-quagga-d6700685673efd8ebb932d85a70626f6d1eb181e.zip
Require key-type to be set.
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/login/user/node.tag/authorized-keys/node.def2
-rw-r--r--templates/system/login/user/node.tag/authorized-keys/node.tag/key-type/node.def (renamed from templates/system/login/user/node.tag/authorized-keys/node.tag/type/node.def)0
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/system/login/user/node.tag/authorized-keys/node.def b/templates/system/login/user/node.tag/authorized-keys/node.def
index 1587fa46..4ca232f8 100644
--- a/templates/system/login/user/node.tag/authorized-keys/node.def
+++ b/templates/system/login/user/node.tag/authorized-keys/node.def
@@ -4,6 +4,8 @@ help: Set public keys for authorized login
syntax:expression: pattern $VAR(@) "^[0-9A-Za-z+/=]*$" ; "Invalid public key not base-64"
+commit:expression: $VAR(key-type) != "" ; "key-type must be specified"
+
comp_help:
Public key of remote user allowed to login without password
The key must be encode as base-64 text string. The key is usually
diff --git a/templates/system/login/user/node.tag/authorized-keys/node.tag/type/node.def b/templates/system/login/user/node.tag/authorized-keys/node.tag/key-type/node.def
index 54482824..54482824 100644
--- a/templates/system/login/user/node.tag/authorized-keys/node.tag/type/node.def
+++ b/templates/system/login/user/node.tag/authorized-keys/node.tag/key-type/node.def