From a19170dd86777da1e240da777c99934a6956fa54 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 19 Jan 2010 11:37:46 -0800 Subject: Restrict radius-server timeout value Values > 30 are likely to cause login timeout, so don't allow them. --- templates/system/login/radius-server/node.tag/timeout/node.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/system') 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 e2130e97..ab506233 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,5 @@ type: u32 help: Set timeout for radius session [REQUIRED] default: 2 +syntax:expression: $VAR(@) > 0 && $VAR(@) <= 30 \ + ; "Timeout must be between 1 and 30 seconds" -- cgit v1.2.3