Hi Alan,

Could you please tell me how am I supposed to set acct_users files
to execute a script?

My acct_users files has just one example:
#DEFAULT NAS-IP-Address == 10.0.0.1, Replicate-To-Realm := "realmname"

and README file shows:
3g. NEW RADIUS ATTRIBUTES (to be used in the USERS file).

  Name                  Type            Descr.
  ----                  ----            ------
  Simultaneous-Use      integer         Max. number of concurrent logins
  Fall-Through          integer         Yes/No
  Exec-Program          string          program to execute after authentication
  Exec-Program-Wait     string          ditto, but wait for program to finish
                                        before sending back auth. reply
  Login-Time            string          Defines when user may login.

  Exec-Program can take arguments. You can use macros in the arguments:


So, I figured out like users file.

If I set users file:
DEFAULT Auth-Type := System
        Exec-Program-Wait = "/usr/local/etc/raddb/vrflogin.py %u %f",
        Fall-Through = 1

and don't make any change in acct_users, radiusd execute the script
just when the connection is made and I need it be executed when the
accounting is sent.

But, if I set users file:
DEFAULT Auth-Type := System
        Fall-Through = 1

and acct_users file:
DEFAULT Exec-Program-Wait = "/usr/local/etc/raddb/vrflogin.py %u %f"

it doesn't work... :-/

Thank's a lot,
Ronan

On Fri, 31 May 2002 17:04:47 -0400
"Alan DeKok" <[EMAIL PROTECTED]> wrote:

> Ronan Lucio <[EMAIL PROTECTED]> wrote:
> > I've put the follow line in raddb/acct_users files
> > 
> > DEFAULT Exec-Program-Wait = "/usr/local/etc/raddb/vrflogin.py %u %f"
> 
>   Does this look anything like the example in the file
> 'scripts/exec-program-wait'?
> 
>   NO!  That's why it does not work.
> 
>   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

Reply via email to