From 8c19cf60345065b1d573e7befea9be6042d296a2 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 10 Mar 2008 17:57:18 -0700 Subject: fix for bug 2083: add radius authentication support. --- templates/system/login/radius-server/node.def | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (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 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" -- cgit v1.2.3