| 1 |
This is now called Post-Auth-Type, for consistency. |
| 2 |
|
| 3 |
O.INTRODUCTION |
| 4 |
|
| 5 |
Post-Auth-Type is used to select between groupings of |
| 6 |
modules in the post-auth stanza using arbitrary attributes. |
| 7 |
It is functionally identical to Acct-Type, apart from |
| 8 |
the name of the attribute and its dealing with rejected |
| 9 |
requests.. This means that (unlike Autz-Type) the attribute |
| 10 |
must be set before the stanza is run. Changes to |
| 11 |
Post-Auth-Type during post-auth will have no effect. |
| 12 |
|
| 13 |
1.HOW IT WORKS |
| 14 |
|
| 15 |
If a request has been rejected, the value of Post-Auth-Type |
| 16 |
is overwritten with REJECT automatically, so anonymous |
| 17 |
modules outside the REJECT substanza will not be run, only |
| 18 |
modules within the appropriate substanza will be run. |
| 19 |
|
| 20 |
2.EXAMPLES |
| 21 |
|
| 22 |
In the example below, when a request has been rejected, the |
| 23 |
module my_ippool will not be run, only the module my_detail |
| 24 |
will be run. |
| 25 |
If the request is not rejected, the my_ippool module will be |
| 26 |
run, but not the my_detail module |
| 27 |
|
| 28 |
post-auth { |
| 29 |
my_ippool |
| 30 |
Post-Auth-Type REJECT { |
| 31 |
my_detail |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
In the following example, 2 different sql modules are used |
| 36 |
to store accepted requests and rejected requests. |
| 37 |
|
| 38 |
post-auth { |
| 39 |
my_sql_accept |
| 40 |
Post-Auth-Type REJECT { |
| 41 |
my_sql_reject |
| 42 |
} |
| 43 |
} |
| 44 |
|