]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
disable unix/utmp modules in the default config
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Fri, 31 Jan 2025 11:37:48 +0000 (11:37 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Fri, 31 Jan 2025 11:41:10 +0000 (11:41 +0000)
doc/ChangeLog
raddb/mods-available/radutmp
raddb/mods-available/sradutmp
raddb/mods-available/unix
raddb/sites-available/decoupled-accounting
raddb/sites-available/default
raddb/sites-available/inner-tunnel

index 9b392735eca143ece9679c49ad93c3f852c50440..9576d555a37f62d4b892870224ffff16a1a4b8f2 100644 (file)
@@ -11,6 +11,9 @@ FreeRADIUS 3.2.7 Sat 24 Aug 2024 12:00:00 UTC urgency=low
          better match behavior of radsecproxy.
        * python2 and rlm_couchbase are no longer available in the
          alpine docker image.
+       * utmp files are becoming obsolete due to 32-bit time. unix/radwtmp
+         have been commented out in the default config and "radlast" is
+         no longer installed if "last" is not present on the system.
 
        Feature improvements
        * Print MD5 hash of the configuration files in debug mode.
@@ -59,7 +62,6 @@ FreeRADIUS 3.2.7 Sat 24 Aug 2024 12:00:00 UTC urgency=low
        * Better handler single-character expansions.  Fixes #2216.
        * Correct calculation of EAP length in pre-proxy.  Fixes #5486.
        * Don't segfault when using detail listeners. Fixes #5485
-       * radlast is no longer installed if "last" is not present.
        * Add check for Couchbase v2, rlm_couchbase won't build on v3.
 
 FreeRADIUS 3.2.6 Sat 24 Aug 2024 12:00:00 UTC urgency=low
index 82319c033bbf349991a46b8f198a5bf5487b5da8..3702bb04e776188d1f38ecdb6710a584e744e653 100644 (file)
@@ -8,6 +8,9 @@
 #  This file is used mainly for Simultaneous-Use checking,
 #  and also 'radwho', to see who's currently logged in.
 #
+#  The 'utmp' file format is becoming obsolete. You should use
+#  a database instead.
+#
 radutmp {
        #  Where the file is stored.  It's not a log file,
        #  so it doesn't need rotating.
index 3a2a0e502e76ec00d4ec17e70132448e1547da46..2fbae19a4c856cc88c928da7a7fed3376c9f1796 100644 (file)
@@ -2,13 +2,18 @@
 #
 #  $Id$
 
-# "Safe" radutmp - does not contain caller ID, so it can be
-# world-readable, and radwho can work for normal users, without
-# exposing any information that isn't already exposed by who(1).
 #
-# This is another 'instance' of the radutmp module, but it is given
-# then name "sradutmp" to identify it later in the "accounting"
-# section.
+#  "Safe" radutmp - does not contain caller ID, so it can be
+#  world-readable, and radwho can work for normal users, without
+#  exposing any information that isn't already exposed by who(1).
+#
+#  This is another 'instance' of the radutmp module, but it is given
+#  then name "sradutmp" to identify it later in the "accounting"
+#  section.
+#
+#  'utmp' files are becoming obsolete. You should use a database
+#  instead.
+#
 radutmp sradutmp {
        filename = ${logdir}/sradutmp
        permissions = 0644
index 5165139aaf39d533581161871542b48a6e3e8c42..fcdd5b140a14424a780ce996041c3add4712460f 100644 (file)
@@ -21,5 +21,9 @@ unix {
        #  Note that the radwtmp file may get large!  You should
        #  rotate it (cp /dev/null radwtmp), or just not use it.
        #
+       #  wtmp files are gradually becoming obsolete. Some systems
+       #  may not have 'last' or 'radlast' available any more.
+       #  You shoud use a database instead.
+       #
        radwtmp = ${logdir}/radwtmp
 }
index abf455cc2cf10da1e8e749a90b544a533c7e26e1..46bf7a120dad1c67235afa0da9316641263e7c43 100644 (file)
@@ -91,15 +91,16 @@ accounting {
 
        #  Update the wtmp file
        #
-       #  If you don't use "radlast", you can delete this line.
-       unix
+       #  If you don't use "radlast" (becoming obsolete and no longer
+       #  available on all systems), you can delete this line.
+#      unix
 
        #
        #  For Simultaneous-Use tracking.
        #
        #  Due to packet losses in the network, the data here
        #  may be incorrect.  There is little we can do about it.
-       radutmp
+#      radutmp
 #      sradutmp
 
        #
index 81efbac1d1b1cc2acd01d89d0520ba2ad69ed5b6..5046e59429b1510d5a2372593a60d16f2b951d7b 100644 (file)
@@ -699,6 +699,7 @@ accounting {
        #  recorded from the corresponding Access-Accept
        #  use it only if your NAS boxes do not support CUI themselves
 #      cui
+
        #
        #  Create a 'detail'ed log of the packets.
        #  Note that accounting requests which are proxied
@@ -708,8 +709,9 @@ accounting {
 
        #  Update the wtmp file
        #
-       #  If you don't use "radlast", you can delete this line.
-       unix
+       #  If you don't use "radlast" (becoming obsolete and no longer
+       #  available on all systems), you can delete this line.
+#      unix
 
        #
        #  For Simultaneous-Use tracking.
index 1197e084d77e469f7208306489f2b15588546a4e..68998cf95e67829f462e5bc65c0bb7fdba3843d1 100644 (file)
@@ -289,7 +289,7 @@ authenticate {
 #  or rlm_sql module can handle this.
 #  The rlm_sql module is *much* faster
 session {
-       radutmp
+#      radutmp
 
        #
        #  See "Simultaneous Use Checking Queries" in `mods-config/sql/main/$driver/queries.conf`