The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
mod_action.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15  */
16 
17 /**
18  * $Id: 8317b5c0b764640602a7d4a588282ad7c8046b09 $
19  *
20  * @file unlang/action.c
21  * @brief Default action sets for virtual server actions.
22  *
23  * @copyright 2024 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
24  */
25 RCSID("$Id: 8317b5c0b764640602a7d4a588282ad7c8046b09 $")
26 
27 #include <freeradius-devel/unlang/mod_action.h>
28 
30  .actions = {
33  [RLM_MODULE_OK] = 4,
37  [RLM_MODULE_NOTFOUND] = 1,
38  [RLM_MODULE_NOOP] = 2,
39  [RLM_MODULE_UPDATED] = 3
40  },
41  .retry = RETRY_INIT
42 };
43 
45  .actions = {
48  [RLM_MODULE_OK] = 3,
52  [RLM_MODULE_NOTFOUND] = 1,
53  [RLM_MODULE_NOOP] = 2,
54  [RLM_MODULE_UPDATED] = 4
55  },
56  .retry = RETRY_INIT,
57 };
58 
60  .actions = {
63  [RLM_MODULE_OK] = 2,
68  [RLM_MODULE_NOOP] = 1,
69  [RLM_MODULE_UPDATED] = 3
70  },
71  .retry = RETRY_INIT,
72 };
73 
75  .actions = {
78  [RLM_MODULE_OK] = 2,
83  [RLM_MODULE_NOOP] = 1,
84  [RLM_MODULE_UPDATED] = 3
85  },
86 };
87 
89  .actions = {
92  [RLM_MODULE_OK] = 3,
96  [RLM_MODULE_NOTFOUND] = 1,
97  [RLM_MODULE_NOOP] = 2,
98  [RLM_MODULE_UPDATED] = 4
99  },
100  .retry = RETRY_INIT
101 };
#define RCSID(id)
Definition: build.h:481
unlang_mod_actions_t const mod_actions_preacct
Definition: mod_action.c:59
unlang_mod_actions_t const mod_actions_authenticate
Definition: mod_action.c:29
unlang_mod_actions_t const mod_actions_accounting
Definition: mod_action.c:74
unlang_mod_actions_t const mod_actions_authorize
Definition: mod_action.c:44
unlang_mod_actions_t const mod_actions_postauth
Definition: mod_action.c:88
@ MOD_ACTION_RETURN
Definition: mod_action.h:40
unlang_mod_action_t actions[RLM_MODULE_NUMCODES]
Definition: mod_action.h:62
@ RLM_MODULE_INVALID
The module considers the request invalid.
Definition: rcode.h:45
@ RLM_MODULE_OK
The module is OK, continue.
Definition: rcode.h:43
@ RLM_MODULE_FAIL
Module failed, don't reply.
Definition: rcode.h:42
@ RLM_MODULE_DISALLOW
Reject the request (user is locked out).
Definition: rcode.h:46
@ RLM_MODULE_REJECT
Immediately reject the request.
Definition: rcode.h:41
@ RLM_MODULE_NOTFOUND
User not found.
Definition: rcode.h:47
@ RLM_MODULE_UPDATED
OK (pairs modified).
Definition: rcode.h:49
@ RLM_MODULE_NOOP
Module succeeded without doing anything.
Definition: rcode.h:48
@ RLM_MODULE_HANDLED
The module handled the request, so stop.
Definition: rcode.h:44
#define RETRY_INIT
Definition: retry.h:39