finding out which section we're in

Franks Andy (IT Technical Architecture Manager) Andy.Franks at sath.nhs.uk
Wed Dec 2 19:04:16 CET 2015


Sorry, realise this request is a bit ambiguous - to state things better, I have policy.d unlang "scripts" which are called both in authorize, accounting and so on (same script), and in the script I want to say if (section==authorize) { stuff } elseif (section==accounting) { stuff } 
Thanks
Andy

-----Original Message-----
From: Freeradius-Users [mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradius.org] On Behalf Of Franks Andy (IT Technical Architecture Manager)
Sent: 02 December 2015 17:59
To: freeradius-users at lists.freeradius.org
Subject: finding out which section we're in

Hi all,
  Very quick question hopefully. Is there a way of (in unlang) finding out which section we're in? I have policies called from authorize, accounting etc which do similar things, but it would be nice to do something different based on "section".
  I've had a look at the runtime variables and dictionaries but can't anything obvious.

Thanks
Andy
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list