From a9da84af5738e8eb5b8751cb4d6c00d1beb2810d Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 8 Oct 2011 15:54:33 +0200 Subject: A DynamicLookupCommand exiting with 10 is treated like an empty server stanza. This way a script can signal "not found". The naptr-eduroam.sh and radsec-dynsrv.sh scripts are changed to behave like this. Closes RADSECPROXY-22. --- radsecproxy.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 6554e8d..303aba4 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2273,8 +2273,14 @@ int dynamicconfig(struct server *server) { } if (status) { - debug(DBG_INFO, "dynamicconfig: command exited with status %d", WEXITSTATUS(status)); - goto errexit; + if (WEXITSTATUS(status) == 10) { + debug(DBG_INFO, "dynamicconfig: command signals empty config"); + } + else { + debug(DBG_INFO, "dynamicconfig: command exited with status %d", + WEXITSTATUS(status)); + goto errexit; + } } if (ok) -- cgit v1.1