If I am understanding your needs, this script does NOT perform user authentication.

In that case, I THINK you want to trigger based upon accounting records being sent to radius.

To do this, you need to use the ../etc/raddb/acct_users file.

Here is an example that we have been using for a session ending...

DEFAULT Acct-Status-Type == Stop
       Exec-Program-Wait = "%{exec:/usr/local/sbin/acctstop.sh}",
       Fall-Through = no

From memory, I believe the counterpart to this is the "Acct-Status-Type ==
Start " (verify that).

Ensure you script provides a return code of 0.  I THINK they matter...

Good Luck!
-craig

----- Original Message ----- From: "Josh Willmarth" <[email protected]>
To: "FreeRadius users mailing list" <[email protected]>
Sent: Sunday, February 07, 2010 2:44 AM
Subject: Re: Run user defined scripts on client connect and disconnect


Hello,

I looked at the included modules and read a lot of documentation, but
I seem to be missing the general concept. Could someone please give me
a detailed run down of which files to edit (and what to edit) in order
to execute a shell script during accounting and post-auth? This would
be greatly appreciated.

Thank you,
Josh Willmarth

On Thu, Feb 4, 2010 at 11:34 PM, Alan DeKok <[email protected]> wrote:
Josh Willmarth wrote:
I have a radius server setup with version 2.1.8. Is there a way that I
can have custom scripts run each time a user successfully connects to
and disconnects from my radius server? If so, what environment
variables can be passed to these scripts? Sorry if I missed this in
the documentation, but I was unable to find the exact answer I am
looking for.

See raddb/modules/exec

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


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

__________ Information from ESET Smart Security, version of virus signature database 4842 (20100206) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature 
database 4847 (20100208) __________

The message was checked by ESET Smart Security.

http://www.eset.com



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

Reply via email to