]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Default to sending the application name in v4
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 26 Feb 2019 05:43:49 +0000 (13:43 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 26 Feb 2019 07:07:51 +0000 (15:07 +0800)
src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c

index 322acbfa4aac982a9e1fc64070f12fa95e9e2d30..614b5524a5758e9e3786cf9a45040c8d6bd7385e 100644 (file)
@@ -57,9 +57,12 @@ RCSID("$Id$")
 #  define NAMEDATALEN 64
 #endif
 
+/** PostgreSQL configuration
+ *
+ */
 typedef struct {
-       char const      *db_string;
-       bool            send_application_name;
+       char const      *db_string;             //!< Text based configuration string.
+       bool            send_application_name;  //!< Whether we send the application name to PostgreSQL.
 } rlm_sql_postgres_t;
 
 typedef struct {
@@ -72,7 +75,7 @@ typedef struct {
 } rlm_sql_postgres_conn_t;
 
 static CONF_PARSER driver_config[] = {
-       { FR_CONF_OFFSET("send_application_name", FR_TYPE_BOOL, rlm_sql_postgres_t, send_application_name), .dflt = "no" },
+       { FR_CONF_OFFSET("send_application_name", FR_TYPE_BOOL, rlm_sql_postgres_t, send_application_name), .dflt = "yes" },
        CONF_PARSER_TERMINATOR
 };