Initial revision
[freeradius.git] / src / include / conf.h
1 /* Default Database File Names */
2
3 #define RADIUS_DIR              RADDBDIR
4 #define RADACCT_DIR             RADIR
5 #define RADLOG_DIR              LOGDIR
6
7 #define RADIUS_DICTIONARY       "dictionary"
8 #define RADIUS_CLIENTS          "clients"
9 #define RADIUS_NASLIST          "naslist"
10 #define RADIUS_USERS            "users"
11 #define RADIUS_HOLD             "holdusers"
12 #define RADIUS_LOG              "radius.log"
13 #define RADIUS_HINTS            "hints"
14 #define RADIUS_HUNTGROUPS       "huntgroups"
15 #define RADIUS_REALMS           "realms"
16 #define RADIUS_MODULES          "modules"
17
18 #define RADUTMP                 LOGDIR "/radutmp"
19 #define RADWTMP                 LOGDIR "/radwtmp"
20
21 #define RADIUS_PID              RUNDIR "/radiusd.pid"
22
23 #define CHECKRAD                SBDIRDIR "/checkrad"
24
25 /* Hack for funky ascend ports on MAX 4048 (and probably others)
26    The "NAS-Port-Id" value is "xyyzz" where "x" = 1 for digital, 2 for analog;
27    "yy" = line number (1 for first PRI/T1/E1, 2 for second, so on);
28    "zz" = channel number (on the PRI or Channelized T1/E1).
29     This should work with normal terminal servers, unless you have a TS with
30         more than 9999 ports ;^).
31     The "ASCEND_CHANNELS_PER_LINE" is the number of channels for each line into
32         the unit.  For my US/PRI that's 23.  A US/T1 would be 24, and a
33         European E1 would be 30 (I think ... never had one ;^).
34     This will NOT change the "NAS-Port-Id" reported in the detail log.  This
35         is simply to fix the dynamic IP assignments a la Cistron.
36     You can change the default of 23 with an argument to ./configure.
37     WARNING: This hack works for me, but I only have one PRI!!!  I've not
38         tested it on 2 or more (or with models other than the Max 4048)
39     Use at your own risk!
40   -- dgreer@austintx.com
41 */
42 #if ASCEND_PORT_HACK
43 #  ifndef ASCEND_CHANNELS_PER_LINE
44 #    define ASCEND_CHANNELS_PER_LINE        23
45 #  endif
46 #endif
47
48 /*
49  *      Hack for USR gear - uses a different Vendor-Specific attribute
50  *      packet layout, argh.
51  */
52 #define ATTRIB_NMC
53