Conditions for executing module

Alan DeKok aland at
Sat Jun 12 08:41:48 CEST 2010

Mindaugas Riauba wrote:
>   How to define some conditions in users/acct_users file when to use
> our module? It is quite heavy and we'd like to avoid its execution in
> as many cases as possible.

  See "man unlang"

>   I tried such configuration in users. Idea comes from
> DEFAULT Auth-Type := Ourclient, Calling-Station-Id == "333"
> DEFAULT Auth-Type := Accept
>   And adding this to sites-enabled/default:
> Auth-Type Ourclient {

   ... *where* did you add it?

>         ourclient
> }
>   But rlm_files complains about unknown value for Auth-Type. Should I
> just define this new Auth-Type in dictionary (then which range of
> values is for local use?) or there is more elegant solution?

  Put it in the "authenticate" section, and it should work.

  Alan DeKok.

More information about the Freeradius-Users mailing list