From aa149d9088dc4f44d92d772d8346ff90d658168b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 4 Dec 2009 19:43:57 -0800 Subject: Add back public-key templates Move them under user/node.tag/authorization --- .../login/user/node.tag/authentication/public-keys/node.def | 9 +++++++++ .../node.tag/authentication/public-keys/node.tag/key/node.def | 9 +++++++++ .../node.tag/authentication/public-keys/node.tag/type/node.def | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 templates/system/login/user/node.tag/authentication/public-keys/node.def create mode 100644 templates/system/login/user/node.tag/authentication/public-keys/node.tag/key/node.def create mode 100644 templates/system/login/user/node.tag/authentication/public-keys/node.tag/type/node.def (limited to 'templates/system') 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" -- cgit v1.2.3