Hello Remo, i missed following in reference manual:
· Look for a Realm with an exact match on the realm name · If still no exact match, look for a matching regular expression Realm · If still no match, look for a <Realm DEFAULT> · If still no match, look at each Handler in the order they appear in the configuration file until one where all the check items match the request. · If still no match, ignore (i.e. do not reply to) the request. you are right, it is working as expected, i didn`t read the documentation carefully. Thank a lot for kicking me in right direction. r. On 11/30/11 11:28, Ryter Remo wrote: > Hi Riki, > > Radiator looks first for a Realm with exact match on the realm name, > then matching regular expression Realm, then <Realm DEFAULT> and > afterwards for a Handler. > > You may want to try this: > > <Handler User-Name=/(.+)sk$/> > SessionDatabase SDNull > AcctLogFileName %L/acct-test-%Y%m%d > </Handler> > > <Handler> > AcctLogFileName %L/acct-adsl-all-%Y%m%d > </Handler> > > Then the 'default' handler should only kick in when the User-Name > doesn't match. > > Hope that helps, > --Remo > > -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of riki > Sent: Mittwoch, 30. November 2011 11:14 > To: [email protected] > Subject: [RADIATOR] AcctLogFileName not working as expected > > Hello, > > i have very simple setup of accounting-only instance, handlers looks > like this: > > <Handler User-Name=/(.+)sk$/> > SessionDatabase SDNull > AcctLogFileName %L/acct-test-%Y%m%d > </Handler> > > <Realm DEFAULT> > AcctLogFileName %L/acct-adsl-all-%Y%m%d > </Realm> > > but all the accounting records falls to DEFAULT Realm. > > What am i missing here? > > Thanks. > > r. > _______________________________________________ > radiator mailing list > [email protected] > http://www.open.com.au/mailman/listinfo/radiator _______________________________________________ radiator mailing list [email protected] http://www.open.com.au/mailman/listinfo/radiator
