Execute A Script After User Authenticate

fvt3 fvt3 at yahoo.com
Wed Nov 28 22:59:33 CET 2007


Hi,

I have Freeradius setup to authenticate user off mysql database.  I was able to set Freeradius to execute a script base on what group a user is in.
ex.
usergroup table:
username    groupname
Jdoe            testprogram

radgroupreply table:
Groupname    atrribute    op    value
testprogram    Exec-Program-Wait    ==    /usr/local/etc/raddb/test.pl

When user Jdoe authenticates, the script ran no problem.  My problem is how do you pass the user-name and client host information to this script.  
Note: I was able to pass the user-name to the script when the following is placed in the users file.  However this does not behave the way I want.
DEFAULT Auth-Type=  local 
       Exec-Program-Wait = '/usr/local/etc/raddb/test.pl %{User-Name}',


Any help would be appreciated..



      ____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 



More information about the Freeradius-Users mailing list