Add an example of the option "sql_user_name" to the config of
authornbk <nbk>
Sat, 1 Dec 2007 00:28:09 +0000 (00:28 +0000)
committernbk <nbk>
Sat, 1 Dec 2007 00:28:09 +0000 (00:28 +0000)
module "rlm_sql_log" so the users can notice its existence.

man/man5/rlm_sql_log.5
raddb/radiusd.conf.in

index 29cf77d..a56d61f 100644 (file)
@@ -58,12 +58,14 @@ modules {
 .br
   sql_log {
 .br
-    path = ${radacctdir}/sql-relay
+    path = "${radacctdir}/sql-relay"
 .br
     acct_table = "radacct"
 .br
     postauth_table = "radpostauth"
 .br
+    sql_user_name = "%{%{User-Name}:-DEFAULT}"
+.br
 
 .br
     Start = "INSERT INTO ${acct_table} ..."
index e55e533..d911331 100644 (file)
@@ -1189,9 +1189,10 @@ $INCLUDE eap.conf
        #  See rlm_sql_log(5) manpage.
        #
 #      sql_log {
-#              path = ${radacctdir}/sql-relay
+#              path = "${radacctdir}/sql-relay"
 #              acct_table = "radacct"
 #              postauth_table = "radpostauth"
+#              sql_user_name = "%{%{User-Name}:-DEFAULT}"
 #
 #              Start = "INSERT INTO ${acct_table} (AcctSessionId, UserName, \
 #               NASIPAddress, FramedIPAddress, AcctStartTime, AcctStopTime, \