summaryrefslogtreecommitdiff
path: root/templates/system/login/radius-server
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/login/radius-server')
-rw-r--r--templates/system/login/radius-server/node.def12
-rw-r--r--templates/system/login/radius-server/node.tag/port/node.def4
-rw-r--r--templates/system/login/radius-server/node.tag/secret/node.def2
-rw-r--r--templates/system/login/radius-server/node.tag/timeout/node.def2
4 files changed, 10 insertions, 10 deletions
diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def
index 0f4ffbfe..6d87890c 100644
--- a/templates/system/login/radius-server/node.def
+++ b/templates/system/login/radius-server/node.def
@@ -1,10 +1,10 @@
tag:
type: ipv4
-help: "Radius server authentication configuration"
+help: Radius server authentication configuration
# need mandatory secret. also need port & timeout (default values?)
-update: "sudo sh -c \"touch /etc/raddb/server && \
-sed -i '/$(@)/d' /etc/raddb/server && \
-echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \
+update:expression: "sudo sh -c \"touch /etc/raddb/server && \
+sed -i '/$VAR(@)/d' /etc/raddb/server && \
+echo \\\"$VAR(@):$VAR(port/@)\t$VAR(secret/@)\t$VAR(timeout/@)\\\" \
>> /etc/raddb/server\" "
-delete: "sudo sh -c \"touch /etc/raddb/server && \
-sed -i '/$(@)/d' /etc/raddb/server\" "
+delete:expression: "sudo sh -c \"touch /etc/raddb/server && \
+sed -i '/$VAR(@)/d' /etc/raddb/server\" "
diff --git a/templates/system/login/radius-server/node.tag/port/node.def b/templates/system/login/radius-server/node.tag/port/node.def
index 8c856e78..002bc8a0 100644
--- a/templates/system/login/radius-server/node.tag/port/node.def
+++ b/templates/system/login/radius-server/node.tag/port/node.def
@@ -1,4 +1,4 @@
type: u32
-help: "Configure radius port"
-syntax: ($(@) > 0 && $(@) < 65536) ; "port must be between 1 and 65535"
+help: Configure radius port
+syntax:expression: ($VAR(@) > 0 && $VAR(@) < 65536) ; "port must be between 1 and 65535"
default: 1812
diff --git a/templates/system/login/radius-server/node.tag/secret/node.def b/templates/system/login/radius-server/node.tag/secret/node.def
index eb08eca3..71176843 100644
--- a/templates/system/login/radius-server/node.tag/secret/node.def
+++ b/templates/system/login/radius-server/node.tag/secret/node.def
@@ -1,2 +1,2 @@
type: txt
-help: "Secret for radius access"
+help: Secret for radius access
diff --git a/templates/system/login/radius-server/node.tag/timeout/node.def b/templates/system/login/radius-server/node.tag/timeout/node.def
index 84bb4424..23a964a6 100644
--- a/templates/system/login/radius-server/node.tag/timeout/node.def
+++ b/templates/system/login/radius-server/node.tag/timeout/node.def
@@ -1,3 +1,3 @@
type: u32
-help: "Timeout for radius session"
+help: Timeout for radius session
default: 2