From 07183520f3f4d2f89e526055db418046d0d2450f Mon Sep 17 00:00:00 2001
From: An-Cheng Huang <ancheng@sydney.vyatta.com>
Date: Fri, 19 Oct 2007 11:26:15 -0700
Subject: move "system" configuration templates/scripts from vyatta-cfg.

---
 templates/system/login/radius-server/node.def | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 templates/system/login/radius-server/node.def

(limited to 'templates/system/login/radius-server/node.def')

diff --git a/templates/system/login/radius-server/node.def b/templates/system/login/radius-server/node.def
new file mode 100644
index 00000000..d12be764
--- /dev/null
+++ b/templates/system/login/radius-server/node.def
@@ -0,0 +1,14 @@
+tag:
+type: ipv4
+help: "Radius server authentication configuration"
+# need mandatory secret. also need port & timeout (default values?)
+create: "sh -c \"touch /etc/raddb/server && \
+sed -i '/$(@)/d' /etc/raddb/server && \
+echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \
+>> /etc/raddb/server\" "
+update: "sh -c \"touch /etc/raddb/server && \
+sed -i '/$(@)/d' /etc/raddb/server && \
+echo \\\"$(@):$(port/@)\t$(secret/@)\t$(timeout/@)\\\" \
+>> /etc/raddb/server\" "
+delete: "sh -c \"touch /etc/raddb/server && \
+sed -i '/$(@)/d' /etc/raddb/server\" "
-- 
cgit v1.2.3

