Removing stale expired accounts from SQL

Rôney Eduardo roneyeduardosantos at gmail.com
Tue Jun 4 22:06:26 CEST 2013


2013/6/4 Ethan Hayon <ehayon at gmail.com>:
>
> Should I be doing this with unlang? I was thinking of using unlang to delete
> all of the associated radreply entries in modules/expiration.
>
> Has anyone experienced this problem before, and what solution do you think
> is best?
>

You can do with unlang. Put the following in the authorize section,
before "sql":

        if(User-Name){
                "%{sql:UPDATE radreply SET zzzz  WHERE yyyy}"
        }

--
Roney Eduardo


More information about the Freeradius-Users mailing list