summaryrefslogtreecommitdiff
path: root/templates/system/login/radius-server
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-03-10 17:57:18 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-03-10 17:57:18 -0700
commit8c19cf60345065b1d573e7befea9be6042d296a2 (patch)
tree4d00842161546c662c934736834402d441d099cd /templates/system/login/radius-server
parente7b2082e077f2ac4625f8a7e2a45749b3ce56140 (diff)
downloadvyatta-cfg-system-8c19cf60345065b1d573e7befea9be6042d296a2.tar.gz
vyatta-cfg-system-8c19cf60345065b1d573e7befea9be6042d296a2.zip
fix for bug 2083: add radius authentication support.
Diffstat (limited to 'templates/system/login/radius-server')
-rw-r--r--templates/system/login/radius-server/node.def10
1 files changed, 3 insertions, 7 deletions
diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def
index 6d87890c..85ca4cc5 100644
--- a/templates/system/login/radius-server/node.def
+++ b/templates/system/login/radius-server/node.def
@@ -1,10 +1,6 @@
tag:
type: ipv4
help: Radius server authentication configuration
-# need mandatory secret. also need port & timeout (default values?)
-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:expression: "sudo sh -c \"touch /etc/raddb/server && \
-sed -i '/$VAR(@)/d' /etc/raddb/server\" "
+commit:expression: $VAR(port) != "" && $VAR(secret) != ""
+ && $VAR(timeout) != ""
+ ; "Port, secret, and timeout must be specified for Radius"