Drop unused config entries.
[freeradius.git] / src / modules / rlm_sql / conf.h
1 #ifndef SQL_CONF_H
2 #define SQL_CONF_H
3 /***************************************************************************
4 *  conf.h                             rlm_sql - FreeRADIUS SQL Module      *
5 *                                                                          *
6 *      Configuration options for the SQL module                            *
7 *                                                                          *
8 *                                     Mike Machado <mike@innercite.com>    *
9 ***************************************************************************/
10
11 typedef struct sql_config {
12         char   *sql_driver;
13         char   *sql_server;
14         char   *sql_port;
15         char   *sql_login;
16         char   *sql_password;
17         char   *sql_db;
18         char   *sql_nas_table;
19         char   *query_user;
20         char   *default_profile;
21         char   *authorize_check_query;
22         char   *authorize_reply_query;
23         char   *authorize_group_check_query;
24         char   *authorize_group_reply_query;
25         char   *accounting_onoff_query;
26         char   *accounting_update_query;
27         char   *accounting_update_query_alt;
28         char   *accounting_start_query;
29         char   *accounting_start_query_alt;
30         char   *accounting_stop_query;
31         char   *accounting_stop_query_alt;
32         char   *simul_count_query;
33         char   *simul_verify_query;
34         char   *groupmemb_query;
35         int     sqltrace;
36         int     do_clients;
37         char   *tracefile;
38         char   *xlat_name;
39         int     deletestalesessions;
40         int     num_sql_socks;
41         int     connect_failure_retry_delay;
42         int     query_on_not_found;
43         char   *postauth_query;
44         char   *allowed_chars;
45
46         /* individual driver config */
47         void    *localcfg;
48
49 } SQL_CONFIG;
50
51
52 #define CHECKRAD1               "/usr/sbin/checkrad"
53 #define CHECKRAD2               "/usr/local/sbin/checkrad"
54
55 /* Hack for funky ascend ports on MAX 4048 (and probably others)
56    The "NAS-Port-Id" value is "xyyzz" where "x" = 1 for digital, 2 for analog;
57    "yy" = line number (1 for first PRI/T1/E1, 2 for second, so on);
58    "zz" = channel number (on the PRI or Channelized T1/E1).
59     This should work with normal terminal servers, unless you have a TS with
60         more than 9999 ports ;^).
61     The "ASCEND_CHANNELS_PER_LINE" is the number of channels for each line into
62         the unit.  For my US/PRI that's 23.  A US/T1 would be 24, and a
63         European E1 would be 30 (I think ... never had one ;^).
64     This will NOT change the "NAS-Port-Id" reported in the detail log.  This
65         is simply to fix the dynamic IP assignments a la Cistron.
66     WARNING: This hack works for me, but I only have one PRI!!!  I've not
67         tested it on 2 or more (or with models other than the Max 4048)
68     Use at your own risk!
69   -- dgreer@austintx.com
70 */
71
72 #define ASCEND_PORT_HACK
73 #define ASCEND_CHANNELS_PER_LINE        23
74 #define CISCO_ACCOUNTING_HACK
75
76 /* SQL defines */
77 #define MAX_QUERY_LEN                   4096
78 #define SQL_LOCK_LEN                    MAX_QUERY_LEN
79 #define SQLTRACEFILE                    RADLOG_DIR "/sqltrace.sql"
80
81 /* SQL Errors */
82 #define SQL_DOWN                        1 /* for re-connect */
83
84 #define MAX_COMMUNITY_LEN               50
85 #define MAX_SQL_SOCKS                   256
86 #define MAX_TABLE_LEN                   20
87 #define MAX_AUTH_QUERY_LEN              256
88 #define AUTH_STRING_LEN                 128
89
90 #endif /* SQL_CONF_H */