]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
make the default config clearer
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Mar 2019 14:37:44 +0000 (10:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Mar 2019 14:37:44 +0000 (10:37 -0400)
raddb/mods-available/sql

index 1034cfd349b171d2afecd2df526f4f8d89f1ff1f..27665b4a6cc024cf9ba023c267b008a2629f6e73 100644 (file)
 #
 
 sql {
-       # The sub-module to use to execute queries. This should match
-       # the database you're attempting to connect to.
        #
-       #    * rlm_sql_mysql
-       #    * rlm_sql_mssql
-       #    * rlm_sql_oracle
-       #    * rlm_sql_postgresql
-       #    * rlm_sql_sqlite
-       #    * rlm_sql_null (log queries to disk)
+       #  The dialect of SQL being used.x
+       #
+       #  Allowed dialects are:
+       #
+       #       mssql
+       #       mysql
+       #       oracle
+       #       postgresql
+       #       sqlite
+       #
+       dialect = "sqlite"
+
+       #
+       #  The driver module used to execute the queries.  Since we
+       #  don't know which SQL drivers are being used, the default is
+       #  "rlm_sql_null", which just logs the queries to disk.
+       #
+       #  In order to talk to a real database, delete the next line,
+       #  and uncomment the one after it.
        #
        driver = "rlm_sql_null"
+#      driver = "rlm_sql_${driver}"
+
 
 #
 #      Several drivers accept specific options, to set them, a
@@ -83,13 +96,6 @@ sql {
 #      }
 #
 
-       # The dialect of SQL you want to use, this should usually match
-       # the driver you selected above.
-       #
-       # If you're using rlm_sql_null, then it should be the type of
-       # database the logged queries are going to be executed against.
-       dialect = "sqlite"
-
        # Connection info:
        #
 #      server = "localhost"