Hello Dave - I approach this problem in a slightly different way, by using an Identifier in the Realm or Handler, and checking for it in the hook itself. That way I can call the same hook from different places and have it do "the right thing". Have a look at the examples in "goodies/hooks.txt" to see how its done. BTW - I always use the "file:..." construct as I can then keep my hooks in RCS as seperate items. thanks Hugh On Saturday 21 April 2001 07:54, Kitabjian, Dave wrote: > Hey, here's an idea. > > I have a PreProcessingHook that I'm calling from a bunch of handlers. So in > order to avoid duplicating code, I used the "file:..." trick. But, if > Radiator had a > > <Hook> > > Identifier HOOK_SPLIT_OFF_REALM > > sub { \ > ... > } > > </Hook> > > clause, then I could call this code right from within my config file as > > PreProcessingHook HOOK_SPLIT_OFF_REALM > > Pretty slick, eh? > > Dave > > :) -- 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.starport.net/~radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.