(RADIATOR) Subroutines or Macros
Gerd Bitzer
gerd.bitzer at tesion.de
Thu May 31 01:03:11 CDT 2001
Hello Hugh,
that looks good :-).
Thanks a lot
Hugh Irvine wrote:
> Hello Gerd -
>
> On Wednesday 30 May 2001 22:24, Gerd Bitzer wrote:
> > Hi List,
> >
> > there are multiple Handlers defined in my radius.cfg, but there are
> > identical lines in each of the Handlers, typically RewriteUsername
> > statements.
> > Is there a way to define a kind of subprogram or macro, which could be
> > referenced inside each of the handlers, but could then be maintained
> > only once in this subprogram ?
> >
>
> You can define your AuthBy clauses outside your Handlers and use Identifiers
> to refer to them, like this:
>
> # define AuthBy clauses
>
> <AuthBy ....>
> Identifier CheckSomeThing
> ....
> </AuthBy>
>
> <AuthBy ....>
> Identifier CheckAnotherThing
> .....
> </AuthBy>
>
> <AuthBy GROUP>
> Identifier CheckSeveralThings
> AuthByPolicy .....
> AuthBy CheckSomeThing
> AuthBy CheckAnotherThing
> .....
> </AuthBy>
>
> # now define Handlers
>
> <Handler .....>
> AuthBy CheckSeveralThings
> .....
> </Handler>
>
> <Handler .....>
> AuthBy CheckSeveralThings
> .....
> </Handler>
>
>
> Note that you can also use "Include" files if you wish, although I personally
> prefer the above format.
>
> regards
>
> Hugh
>
>
> --
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, extensible,
> flexible with hardware, software, platform and database independence.
>
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list