Allow sqlite filename to be specified in the configuration file.
[freeradius.git] / src / modules / rlm_sql / conf.h
index 73b3aab..d1faae0 100644 (file)
@@ -8,6 +8,9 @@
 *                                     Mike Machado <mike@innercite.com>    *
 ***************************************************************************/
 
+#include <freeradius-devel/ident.h>
+RCSIDH(conf_h, "$Id$")
+
 typedef struct sql_config {
        char   *sql_driver;
        char   *sql_server;
@@ -15,17 +18,10 @@ typedef struct sql_config {
        char   *sql_login;
        char   *sql_password;
        char   *sql_db;
-       char   *sql_acct_table;
-       char   *sql_acct_table2;
-       char   *sql_authcheck_table;
-       char   *sql_authreply_table;
-       char   *sql_groupcheck_table;
-       char   *sql_groupreply_table;
-       char   *sql_usergroup_table;
-       char   *sql_nas_table;
-       char   *sql_dict_table;
+       char   *sql_file;       /* for sqlite */
        char   *query_user;
        char   *default_profile;
+       char   *nas_query;
        char   *authorize_check_query;
        char   *authorize_reply_query;
        char   *authorize_group_check_query;
@@ -42,15 +38,17 @@ typedef struct sql_config {
        char   *groupmemb_query;
        int     sqltrace;
        int     do_clients;
+       int     read_groups;
        char   *tracefile;
        char   *xlat_name;
        int     deletestalesessions;
        int     num_sql_socks;
+       int     lifetime;
+       int     max_queries;
        int     connect_failure_retry_delay;
-       int     query_on_not_found;
-       char   *sql_postauth_table;
        char   *postauth_query;
        char   *allowed_chars;
+       int     query_timeout;
 
        /* individual driver config */
        void    *localcfg;