]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
raddb: move driver-specific config out from mods-available
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Sat, 21 May 2016 04:41:57 +0000 (05:41 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 22 May 2016 04:00:41 +0000 (00:00 -0400)
Symlinking them into mods-enabled, the location INCLUDEd in mods-available/sql,
breaks the server as it tries to load rlm_<driver>.so, which doesn't exist.
They're only part of a module config, so don't really fit that well in
mods-available.

Additionally, turn the $INCLUDE into an $-INCLUDE to pull the config in if it
exists, rather than having to be locally uncommented. This makes it easier to
configure sql for the first time (especially to get up and running with sqlite).

raddb/README.rst
raddb/mods-available/sql
raddb/mods-config/sql/driver/cassandra [moved from raddb/mods-available/sql_cassandra with 100% similarity]
raddb/mods-config/sql/driver/mysql [moved from raddb/mods-available/sql_mysql with 100% similarity]
raddb/mods-config/sql/driver/postgres [moved from raddb/mods-available/sql_postgres with 99% similarity]
raddb/mods-config/sql/driver/sqlite [moved from raddb/mods-available/sql_sqlite with 100% similarity]

index a8c0aa1b8e92e2aea482c759c18ea17a9bff4883..3e8bdcae39da47f1bf1ff9e4f85bf1060e0fb362 100644 (file)
@@ -169,6 +169,13 @@ Please use rlm_sqlcounter with sqlite.
 
 
 rlm_ippool
-~~~~~~~~~~~
+~~~~~~~~~~
 
 Please use rlm_sql_ippool with sqlite.
+
+rlm_sql
+~~~~~~~
+
+Driver-specific options have moved from ``mods-available/sql`` to
+``mods-config/sql/driver/<drivername>``.
+
index d29a5f055708c80c0a425b9b3e9f1376c5241c21..52f07e2b38f8e6a0e89588b82cf2d4567e7d4f83 100644 (file)
@@ -9,7 +9,7 @@
 #
 #  Driver specific configuration options are located in sql prefix config files
 #
-#       mods-available/sql_<driver>
+#       mods-config/sql/driver/<driver>
 #
 #  Where "driver" is cassandra, db2, firebird, freetds, iodbc, null, mysql
 #  oracle, postgresql, sqlite, unixodbc.
@@ -40,10 +40,10 @@ sql {
        #
        driver = "rlm_sql_${dialect}"
 
-       # Uncomment to include driver specific configuration file
-       # (if one exists)
-       # These config files contain driver specific options.
-#      $INCLUDE ${modenableddir}/${.:name}_${dialect}
+       # Include driver specific configuration file if one
+       # exists. These are in a separate configuration file
+       # in mods-config/sql/driver/<driver>.
+       $-INCLUDE ${modconfdir}/sql/driver/${dialect}
 
        # Connection info:
        #
similarity index 99%
rename from raddb/mods-available/sql_postgres
rename to raddb/mods-config/sql/driver/postgres
index bac474584b6b3631b4d8c46543941b9d9cbcb860..a9f604c9a7011a7569090670f96e99c1dec60b27 100644 (file)
@@ -11,7 +11,7 @@ postgresql {
        # unlike MySQL, which has a tls{} connection configuration, postgresql
        # uses its connection parameters - see the radius_db option in
        # the main raddb/mods-available/sql file
-       
+
        # Send application_name to the postgres server
        # Only supported in PG 9.0 and greater. Defaults to no.
 #      send_application_name = yes