diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-10 17:57:18 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-10 17:57:18 -0700 |
commit | 8c19cf60345065b1d573e7befea9be6042d296a2 (patch) | |
tree | 4d00842161546c662c934736834402d441d099cd /templates/system/login/radius-server | |
parent | e7b2082e077f2ac4625f8a7e2a45749b3ce56140 (diff) | |
download | vyatta-cfg-quagga-8c19cf60345065b1d573e7befea9be6042d296a2.tar.gz vyatta-cfg-quagga-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.def | 10 |
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" |