6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * Copyright 2000 The FreeRADIUS server project
21 * Copyright 2000 Alan Curry <pacman@world.std.com>
32 static const char rcsid[] = "$Id$";
35 * Do any per-module initialization. e.g. set up connections
36 * to external databases, read configuration files, set up
37 * dictionary entries, etc.
40 static int radius_init(void)
42 /* Initialize the dictionary */
43 if (dict_init(radius_dir, RADIUS_DICTIONARY) != 0) {
44 radlog(L_ERR|L_CONS, "Errors reading dictionary %s/%s: %s",
45 radius_dir, RADIUS_DICTIONARY, librad_errstr);
50 * Everything's OK, return without an error.
55 /* globally exported name */
56 module_t rlm_dictionary = {
58 0, /* type: reserved */
59 radius_init, /* initialization */
60 NULL, /* instantiation */
62 NULL, /* authentication */
63 NULL, /* authorization */
64 NULL, /* preaccounting */
65 NULL, /* accounting */
66 NULL, /* checksimul */
68 NULL, /* post-proxy */