R: Adding Filter-Id Attribute to Accounting Requests

Alessandro Romano alessandro.romano at positivonet.it
Mon Nov 5 16:46:36 CET 2018


Hi Alan,
i've solved problem in this way

#
#  Pre-accounting.  Decide which accounting type to use.
#
preacct {
	preprocess
        update request {
              Filter-ID :="%{sql:SELECT groupname FROM radusergroup WHERE username='%{User-Name}'}"
        }

	acct_unique
	suffix
	files
        update control { 
          Replicate-To-Realm := "ALLOT-SMP"
        } 
}

And it works, can you tell me if the procedure is correct , or it can cause problems 

BR

-----Messaggio originale-----
Da: Freeradius-Users <freeradius-users-bounces+alessandro.romano=positivonet.it at lists.freeradius.org> Per conto di Alan DeKok
Inviato: mercoledì 24 ottobre 2018 17.14
A: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Oggetto: Re: Adding Filter-Id Attribute to Accounting Requests



> On Oct 24, 2018, at 11:08 AM, Alessandro Romano <alessandro.romano at positivonet.it> wrote:
> 
> Forgive me, but it is not true that I do not believe you, perhaps my English is not the best
> 
> the problem is that I can not do it and I need help

  I've helped you as much as I can.  You know what file to edit.  You know what to add to that file.

  Please stop asking for more help.  Instead, go read the documentation.

  Alan DeKok.


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




More information about the Freeradius-Users mailing list