Initial revision
[freeradius.git] / src / modules / rlm_example / rlm_example.c
1 #include "autoconf.h"
2
3 #include <stdio.h>
4 #include <stdlib.h>
5
6 #include "radiusd.h"
7 #include "modules.h"
8
9 static int radius_init(int argc, char **argv)
10 {
11   return 0;
12 }
13
14 static int radius_authenticate(REQUEST *request, char *username, char *password)
15 {
16   return RLM_AUTH_OK;
17 }
18
19 static int radius_accounting(REQUEST *request)
20 {
21   return RLM_ACCT_OK;
22 }
23
24 /* globally exported name */
25 module_t rlm_example = {
26   "example",
27   0,                            /* type: reserved */
28   radius_init,                  /* initialization */
29   NULL,                         /* authorization */
30   radius_authenticate,          /* authentication */
31   radius_accounting,            /* accounting */
32   NULL,                         /* detach */
33 };