Hi, > How to run Perl external program in freeradius? especially, first.pl > program must be run when client login, second.pl program must be run after > client disconnected. > so, how to do it? anyone any idea please?
read the perl module docs and then do the following create 2 perl modules - one called 'perl_login' and one called 'perl_logout'. ensure both of them are enabled...and call the correct program (first.pl and second.pl) in the relevant subroutine (read the example perl code example.pl) now, in the post-auth section, call perl_login and in the accounting section call perl_logout IF the accounting request is a stop. oh, yes, your kit is going to have to do accounting for this to work - as a client doesnt send a logout via RADIUS auth. alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

