32 Commits

Author SHA1 Message Date
Adolf Belka
c9c9580c4e freeradius: Increment PAK_VER & ship freeradius to link to the updated libssl version
- OpenSSL was updated to 3.1.4 in CU181 and to 3.2.1 in CU183 but in both cases freeradius
   was not incremented to cause it to be shipped.
- This patch increments the freeradius PAK_VER to ensure it will be shipped.

Fixes: Bug#13590
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-02-16 12:28:55 +00:00
Adolf Belka
cda4d7a164 freeradius: Update to version 3.2.3
- Update from version 3.0.26 to 3.2.3
- Update of rootfile
- Changelog
    3.2.3
	Feature Improvements
	    Add "max_retries" for connection pools. Fixes #4908. Patch from Nick Porter.
	    Update dictionary.ciena, dictionary.huawei, dictionary.wifialliance and
             dictionary.wispr; add dictionary.eleven.
	    You can now list "eap" in the "pre-proxy" section. If the packet contains a
             malformed EAP message, then the request will be rejected The home server
             will either reject (or discard) this packet anyways, so this change can only
             help with large proxy scenarios.
	    Show warnings if libldap is not using OpenSSL.
	    Support RADIUS/1.1. See
             https://datatracker.ietf.org/doc/draft-dekok-radext-radiusv11/ Disabled by
             default, can be enabled by passing `--with-radiusv11` to the configure
             script. For now, this is for testing interoperability.
	    Add extra sanity checks for malformed EAP attributes.
	    More TLS debugging output.
	    Clear old module instance data before HUP reload. Avoids burst memory use
	     when e.g. using large data files with rlm_files. Patch from Nick Porter.
	    `rlm_cache_redis` is now included in the freeradius-redis packages.
	    Separate out python2/python3 in Debian Packages. Previously python 2 or 3 was
             built depending on the system default which led to confusion. We now build
             both freeradius-python2 and freeradius-python3 packages where possible.
	Bug Fixes
	    Don't leak MD contexts with OpenSSL 3.0.
	    Increase internal buffer size for TLS connections, which can help with
             high-load proxies.
	    Send Status-Server checks for TLS connections.
	    Give descriptive error if "update CoA" is used with "fake" packets, as it
             won't work. i.e. inner-tunnel and virtual home servers.
	    Many small ASAN / LSAN fixes from Jorge Pereira.
	    Close inbound RADIUS/TLS socket on TLS errors. When a home server sees a TLS
             error, it will now close the socket, so proxies do not have an open (but
             dead) TLS connection.
	    Fix mutex locking issues on inbound RADIUS/TLS connections This change avoids
             random issues with "bad record mac".
	    Improve REST encoding loop. Patch from Herwin Weststrate. Closes #4950.
	    Correctly report the LDAP group a user was found in. Fixes #3084 Patch from
             Nick Porter.
	    Force correct packet type when running Post-Auth-Type. Helps with #4980.
	    Fix small leak in Client-Lost code. Patch from Terry Burton. PR #4996.
	    Fix TCP socket statistics. Closes #4990.
	    Use NAS-Port-Id instead of NAS-Port during SQL simultaneous-use checks. Helps
             with #5010.
    3.2.2
	Feature Improvements
	    The "configure" process now gives a much clearer report when it's finished.
             Patches by Matthew Newton.
	    Fallback to "uname -n" on missing "hostname". Fixes #4771.
	    Export thread details in radmin "stats threads". Fixes #4770.
	    Improve queries for processing radacct into periodic usage data Fix from Nick
             Porter.
	    Update dictionary.juniper.
	    Add dictionary.calix.
	    Fix dictionary.rfc6519 DS-Lite-Tunnel-Name to be "octets".
	    Update documentation for robust-proxy-accounting, and be more aggressive
             about sending packets.
	    Add per-module README.md files in the source.
	    Add default Visual Studio configuration for developers.
	    Postgres can now automatically use alternate queries for errors other than
             duplicate keys.
	    %{listen:TLS-PSK-Identity} is now set when using PSK and psk_query This helps
             the server track the identity of the client which is connecting.
	    Include thread stats in Status-Server attributes. Fixes #4870.
	    Mark rlm_unbound stable and add to packages. Patches by Nick Porter.
	    Remove broken/unsupported Dockerfiles for centos8 and debian9.
	    Ensure Docker containers have stable uid/gid. Patches from Terry Burton.
	Bug Fixes
	    Preliminary support for non-blocking TLS sockets. Helps with #3501.
	    Fix support for partial certificate chains after adding reload support.
             Fixes #4753.
	    Fix handling of debug_condition.
	    Clean up home server states, and re-sync with the dictionaries.
	    Correct certificate order when creating TLS-* attributes Fixes #4785.
	    Update use of isalpha() etc. so broken configurations have less impact on the
             server.
	    Outgoing TLS sockets now set SNI correctly from the "hostname" configuration
             item.
	    Support Apple Homebrew on the M1. Fixes #4754.
	    Better error messages when %{listen:TLS-...} is used.
	    Getting statistics via Status-Server can now be done within a virtual server.
             Fixes #4868.
	    Make TTLS+MS-CHAP work with TLS 1.3. Fixes #4878.
	    Fix md5 xlat memory leak when using OpenSSL 3. Fix by Terry Burton.
    3.2.1
	Feature Improvements
	    Add dictionary.ciena, dictionary.nile, and DHCPv4 dictionaries,.
	    Add simultaneous-use queries for MS SQL.
	    Add radmin command for "stats pool <module-name>" Which prints out statistics
             about the connection pools.
	    Client statistics now shows "conflicts", to count conflicting packets.
	    New optional "lightweight accounting-on/off" strategy. When refreshing
             queries.conf you should also add the new nasreload table and corresponding
             GRANTs to your DB schema.
	    Add TLS-Client-Cert-X509v3-Certificate-Policies, which helps with Eduroam.
             Suggested by Stefan Winter.
	    Allow auth+acct for TCP sockets, too.
	    Add rlm_cache_redis. See raddb/mods-available/cache for details.
	    Allow radmin to look up home servers by name, too.
	    Ensure that dynamic clients don't create loops on duplicates Reported by Sam
             Yee.
	    Removed rlm_sqlhpwippool. There was no documentation, no configuration, and
             the module was ~15 years old with no one using it.
	    Marked rlm_python3 as stable.
	    Add sigalgs_list. See raddb/mods-available/eap. Patch from Boris Lytochkin.
	    For rlm_linelog, when opening files in /dev, look at "permissions" to see
             whether to open them r/w.
	    More flexibility for dynamic home servers. See
             doc/configuration/dynamic_home_servers.md and raddb/home_servers/README.md.
	    Allow setting of application_name for PostgreSQL. See mods-available/sql.
	Bug Fixes
	    Correct test for open sessions in radacct for MS SQL.
	    The linelog module now opens /dev/stdout in "write-only" mode if the
             permissions are set to "u+w" (0002).
	    Various fixes to rlm_unbound from Nick Porter.
	    PEAP now correctly runs Post-Auth-Type Accept.
	    Create "TLS-Cert-*" for outbound Radsec, instead of TLS-Client-Cert-*
             Fixes #4698. See sites-available/tls, and fix_cert_order.
	    Minor updates and fixes to CI, Dockerfiles and packaging.
	    Fix rlm_python3 build with python >= 3.10. Fixes #4441.
    3.2.0
	Feature Improvements
	    All features from 3.0.x are included in the 3.2.x releases. In addition:.
	    Add 'reset_day' and '%%r' parameter for rlm_sqlcounter to specify which day
             of the month the counter should be reset.
	    Partial backport of rlm_json from v4, providing the json_encode xlat See
             mods-available/json for documentation.
	    Support for haproxy "PROXY" protocol See sites-available/tls,
             "proxy_protocol" and doc/antora/modules/howto/pages/protocols/proxy/.
	    Support for sending CoA-Request and Disconnect-Request packets in "reverse"
             down RadSec tunnels. Experimental for now, and undocumented.
	    It is now possible to run a virtual server when saving / loading TLS cache
             attributes. See sites-available/tls-cache for more information.
	    Removed the "cram" module. It was undocumented, and used old and insecure
             authentication methods.
	    Remove the "otp" module. The "otpd" program it needs is no longer available,
             and the module has not been usable since at least 2015.
	    All features from 3.0.x are included in the 3.2.x releases.
	    3.2.0 requires OpenSSL 1.0.2 or greater.
	Bug Fixes
	    All bug fixes from 3.0.x are included in the 3.2.x releases.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-07-26 16:09:00 +00:00
Michael Tremer
87d0d07bbc core176: Re-ship lots of stuff that is still linked against OpenSSL 1.1.1
There are no functional changes in these files, but they are however
linked against OpenSSL 1.1.1 and need to be re-shipped before we remove
the legacy library.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-06-27 10:06:45 +00:00
Peter Müller
653c04a9db freeradius: Update to 3.0.26
This is necessary for updating OpenSSL to 3.1.x

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2023-04-24 18:13:12 +00:00
Adolf Belka
b760be6597 freeradius: Ship due to sobump from json-c update
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-01-05 10:40:58 +00:00
Michael Tremer
c183124f58 Bump PAK_VER for all packages that use SERVICES
Since we have extended services.cgi that it reads the Services field
from the Pakfire metadata, we will need to make sure that that metadata
is going to be on those systems.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-09-15 10:43:54 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Robin Roevens
f15707c78c buildprocess: Add extra metadata to pak lfs files
* Add a Summary and Services field to all pak lfs files
* Replace occurances of INSTALL_INITSCRIPT with new INSTALL_INITSCRIPTS
  macro in all pak lfs files.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-11 15:13:15 +00:00
Adolf Belka
875f43830e freeradius: Update to 3.0.23 and disable python to allow running without python2
- Added --without-rlm_python to ./configure to allow running without python2
- Updated rootfile
- Updated patch for preventing cert generation during buildtime to work with new
   version of source code
- Update from 3.0.21 to 3.0.23

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Acked-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-12 17:59:00 +00:00
Arne Fitzenreiter
aafdd71b04 switch arm 32 bit arch from armv5tel to armv6l
we have no supported armv5tel board left so we can switch to the higher
arch. This now can use the vpu (still in softfp calling convention to
not break existing installations.)
this fix many compile problems, also boost is now working again.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Michael Tremer
2cb220fd3c freeradius: Depend on samba again
The package requires more libraries than libtalloc from
the samba package and therefore we need this dependency
again.

Fixes: #12538
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-23 15:12:54 +00:00
Arne Fitzenreiter
42fca29033 libtalloc: add new package because samba4 not provide this anymore
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-06 12:20:09 +00:00
Erik Kapfer
22a6277fc9 freeradius: Update to version 3.0.21
Update includes several fixes (incl. CVE-2019-17185) and feature improvements.
A full overview of all changes can be found in here --> https://raw.githubusercontent.com/FreeRADIUS/freeradius-server/v3.0.x/doc/ChangeLog .

The freeradius-no-buildtime-cert-gen patch applies also with this version.

Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-10-02 14:59:23 +00:00
Michael Tremer
2dc2a27803 lfs: Drop quotes in DEPS variable
Not sure why this has ever been there. This simply makes it
nicer to read and edit because we can have line-breaks now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:57:27 +00:00
Michael Tremer
cf572f2064 Revert "freeradius: Build without SSL"
This reverts commit 071d7754f7.

Fixes: #12139

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-09-02 20:18:45 +00:00
Michael Tremer
e301592fbe freeradius: Update to 3.0.19
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-09-02 20:18:43 +00:00
Michael Tremer
84d5f2faf9 freeradius: Add a logrotate configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-28 08:16:41 +00:00
Michael Tremer
071d7754f7 freeradius: Build without SSL
The version check is entirely broken.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-08-10 03:48:49 +01:00
Michael Tremer
6580bdeb6b freeradius: Build package without generating certificates
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-08-10 03:12:04 +01:00
Michael Tremer
a0cc5faf71 freeradius: Disable openssl version check
freeradius seems to care about which version it has been
compiled with and refuses to start. This switch disables
this behaviour.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-08-10 03:12:04 +01:00
Michael Tremer
7299559611 freeradius: Fix extra whitespace
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-04 02:00:29 +01:00
Michael Tremer
94f89b821e freeradius: handle special LDFLAGS to configure
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-04-03 21:52:04 +00:00
Michael Tremer
4038d70b76 freeradius: Fix build on armv5tel
Reported-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-04-01 21:35:56 +01:00
Erik Kapfer
9f52e35066 freeradius: Update to version 3.0.18
Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-03-29 13:50:18 +00:00
Michael Tremer
2547e73e6b freeradius: Bump version because package is linked against old version of OpenSSL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-03-22 07:28:23 +00:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Michael Tremer
3850e662ef freeradius: FTBFS on aarch64
Needed automake update

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-31 12:08:09 +01:00
Michael Tremer
ca4c354e08 Bump release of all packages linked against OpenSSL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-02-26 16:28:16 +00:00
Matthias Fischer
5eccecab97 freeradius: Update to 3.0.14
For details see:
http://freeradius.org/press/ (Fixes CVE-2017-9148)

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-31 21:27:11 +01:00
Jonatan Schlag
dbb35fa6a4 freeradius: move initscripts to src/initscripts/packages and use new macro
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
2017-02-22 19:50:13 +01:00
Michael Tremer
71f578bbfc freeradius: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-07-19 14:54:50 +01:00