summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-04 19:43:57 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-04 19:43:57 -0800
commitaa149d9088dc4f44d92d772d8346ff90d658168b (patch)
tree8bcb63b21fee6296fe60c489d5bb59fa4ff66d28 /templates
parent02779da89b604aa16d07e8a5fcdd67c8d08ff8d5 (diff)
downloadvyatta-cfg-quagga-aa149d9088dc4f44d92d772d8346ff90d658168b.tar.gz
vyatta-cfg-quagga-aa149d9088dc4f44d92d772d8346ff90d658168b.zip
Add back public-key templates
Move them under user/node.tag/authorization
Diffstat (limited to 'templates')
-rw-r--r--templates/system/login/user/node.tag/authentication/public-keys/node.def9
-rw-r--r--templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def9
-rw-r--r--templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def4
3 files changed, 22 insertions, 0 deletions
diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.def
new file mode 100644
index 00000000..6c1ffbc2
--- /dev/null
+++ b/templates/system/login/user/node.tag/authentication/public-keys/node.def
@@ -0,0 +1,9 @@
+tag:
+type: txt
+help: Set remote access public keys
+comp_help: The key identifier is a usually user@host as generated by ssh-keygen
+
+commit:expression: $VAR(./type/) != "" ; \
+ "Must configure public key type for $VAR(@)"
+commit:expression: $VAR(./key/) != "" ; \
+ "Must configure public key value for $VAR(@)"
diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def
new file mode 100644
index 00000000..70af5961
--- /dev/null
+++ b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def
@@ -0,0 +1,9 @@
+type: txt
+help: Set public key value (base64)
+syntax:expression: pattern $VAR(@) "^[0-9A-Za-z+/=]*$" ; \
+ "Invalid public key character not base-64"
+
+comp_help: Base64 encoded public key value.
+ The key is usually serval hundred bytes long (because of the size of
+ the public key encoding). You don't want to type it in directly,
+ instead use the loadkey interface.
diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def
new file mode 100644
index 00000000..b2cb9652
--- /dev/null
+++ b/templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def
@@ -0,0 +1,4 @@
+type: txt
+help: Set public key type
+allowed: echo "ssh-dsa ssh-rsa"
+syntax:expression: $VAR(@) in "ssh-rsa", "ssh-dsa" ; "Unknown key type"