From: Arran Cudbard-Bell Date: Mon, 23 Jul 2012 16:15:23 +0000 (+0200) Subject: Use "\\n pattern at beginning of lines to trigger whitespace removal X-Git-Tag: release_3_0_0_beta0~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64d9157ced07bd1af07a5cc8221fcc356b1dab92;p=thirdparty%2Ffreeradius-server.git Use "\\n pattern at beginning of lines to trigger whitespace removal --- diff --git a/raddb/sql/mysql/dialup.conf b/raddb/sql/mysql/dialup.conf index a084b6ab307..10b1463fce2 100644 --- a/raddb/sql/mysql/dialup.conf +++ b/raddb/sql/mysql/dialup.conf @@ -91,13 +91,13 @@ # 4. Item Attr Operation ####################################################################### # Use these for case sensitive usernames. -# authorize_check_query = " \ +# authorize_check_query = "\ # SELECT id, username, attribute, value, op \ # FROM ${authcheck_table} \ # WHERE username = BINARY '%{SQL-User-Name}' \ # ORDER BY id" -# authorize_reply_query = " \ +# authorize_reply_query = "\ # SELECT id, username, attribute, value, op \ # FROM ${authreply_table} \ # WHERE username = BINARY '%{SQL-User-Name}' \ @@ -105,39 +105,39 @@ # The default queries are case insensitive. (for compatibility with # older versions of FreeRADIUS) - authorize_check_query = " \ + authorize_check_query = "\ SELECT id, username, attribute, value, op \ FROM ${authcheck_table} \ WHERE username = '%{SQL-User-Name}' \ ORDER BY id" - authorize_reply_query = " \ + authorize_reply_query = "\ SELECT id, username, attribute, value, op \ FROM ${authreply_table} \ WHERE username = '%{SQL-User-Name}' \ ORDER BY id" # Use these for case sensitive usernames. -# group_membership_query = " \ +# group_membership_query = "\ # SELECT groupname \ # FROM ${usergroup_table} \ # WHERE username = BINARY '%{SQL-User-Name}' \ # ORDER BY priority" - group_membership_query = " \ + group_membership_query = "\ SELECT groupname \ FROM ${usergroup_table} \ WHERE username = '%{SQL-User-Name}' \ ORDER BY priority" - authorize_group_check_query = " \ + authorize_group_check_query = "\ SELECT id, groupname, attribute, \ Value, op \ FROM ${groupcheck_table} \ WHERE groupname = '%{Sql-Group}' \ ORDER BY id" - authorize_group_reply_query = " \ + authorize_group_reply_query = "\ SELECT id, groupname, attribute, \ value, op \ FROM ${groupreply_table} \ @@ -159,7 +159,7 @@ # (alternate in case first query doesn't # affect any existing rows in the table) ####################################################################### - accounting_onoff_query = " \ + accounting_onoff_query = "\ UPDATE ${acct_table1} \ SET \ acctstoptime = FROM_UNIXTIME(%{integer:Event-Timestamp}), \ @@ -170,7 +170,7 @@ AND nasipaddress = '%{NAS-IP-Address}' \ AND acctstarttime <= '%S'" - accounting_update_query = " \ + accounting_update_query = "\ UPDATE ${acct_table1} \ SET \ acctupdatetime = (@acctupdatetime_old:=acctupdatetime), \ @@ -187,7 +187,7 @@ AND username = '%{SQL-User-Name}' \ AND nasipaddress = '%{NAS-IP-Address}'" - accounting_update_query_alt = " \ + accounting_update_query_alt = "\ INSERT INTO ${acct_table1} \ (acctsessionid, acctuniqueid, username, \ realm, nasipaddress, nasportid, \ @@ -214,7 +214,7 @@ '%{Service-Type}', '%{Framed-Protocol}', \ '%{Framed-IP-Address}')" - accounting_start_query = " \ + accounting_start_query = "\ INSERT INTO ${acct_table1} \ (acctsessionid, acctuniqueid, username, \ realm, nasipaddress, nasportid, \ @@ -237,7 +237,7 @@ '', '%{Service-Type}', '%{Framed-Protocol}', \ '%{Framed-IP-Address}')" - accounting_start_query_alt = " \ + accounting_start_query_alt = "\ UPDATE ${acct_table1} SET \ acctstarttime = FROM_UNIXTIME(%{integer:Event-Timestamp}), \ acctupdatetime = FROM_UNIXTIME(%{integer:Event-Timestamp}), \ @@ -246,7 +246,7 @@ AND username = '%{SQL-User-Name}' \ AND nasipaddress = '%{NAS-IP-Address}'" - accounting_stop_query = " \ + accounting_stop_query = "\ UPDATE ${acct_table2} SET \ acctstoptime = FROM_UNIXTIME(%{integer:Event-Timestamp}), \ acctsessiontime = '%{Acct-Session-Time}', \ @@ -260,7 +260,7 @@ AND username = '%{SQL-User-Name}' \ AND nasipaddress = '%{NAS-IP-Address}'" - accounting_stop_query_alt = " \ + accounting_stop_query_alt = "\ INSERT INTO ${acct_table2} \ (acctsessionid, acctuniqueid, username, \ realm, nasipaddress, nasportid, \ @@ -301,13 +301,13 @@ ####################################################################### # Uncomment simul_count_query to enable simultaneous use checking -# simul_count_query = " \ +# simul_count_query = "\ # SELECT COUNT(*) \ # FROM ${acct_table1} \ # WHERE username = '%{SQL-User-Name}' \ # AND acctstoptime IS NULL" - simul_verify_query = " \ + simul_verify_query = "\ SELECT radacctid, acctsessionid, username, \ nasipaddress, nasportid, framedipaddress, \ callingstationid, framedprotocol \ @@ -321,7 +321,7 @@ # postauth_query - Insert some info after authentication ####################################################################### - postauth_query = " \ + postauth_query = "\ INSERT INTO ${postauth_table} \ (username, pass, reply, authdate) \ VALUES ( \