Commit Graph

42 Commits

Author SHA1 Message Date
Andy Syam 104098c38b freeradius3: add modules
freeradius3-mod-yubikey
freeradius3-mod-wimax
freeradius3-mod-utf8
freeradius3-mod-unpack
freeradius3-mod-sql-map
freeradius3-mod-sometimes
freeradius3-mod-soh
freeradius3-mod-replicate
freeradius3-mod-rediswho
freeradius3-mod-redis
freeradius3-mod-pam
freeradius3-mod-linelog
freeradius3-mod-krb5
freeradius3-mod-ippool
freeradius3-mod-eap-fast
freeradius3-mod-dynamic-clients
freeradius3-mod-date
freeradius3-mod-counter

Signed-off-by: Andy Syam <privasisource@gmail.com>
2023-12-02 16:21:34 -08:00
Jeffery To 92aadf7e4a freeradius3: Fix build when pcre is present
If pcre is built before freeradius, then freeradius' configure will
detect pcre and freeradius will be built with pcre functionality
enabled. This causes a "missing dependencies" error at the end of
package build.

This passes --without-pcre to configure to disable this autodetection.

This also removes the dependency on libpcre2 as freeradius v3 does not
have support for pcre2.

Fixes: 19ec30255f ("freeradius3: switch to pcre2")
Fixes: https://github.com/openwrt/packages/issues/22574

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-15 11:24:17 -08:00
Martin Strobel 19ec30255f freeradius3: switch to pcre2
use libpcre2 as dependency for freeradius3-common
because PCRE is EOL with no further updates

Compile & run tested on mediatek mt76 ubnt-ui6-lr-v1 with musl

Signed-off-by: Martin Strobel <arctus@crza.de>
2023-10-30 14:01:45 -07:00
Jianhui Zhao dda8ba0ca7 freeradius3: Update to 3.0.26
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2023-05-29 18:13:06 +03:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Rosen Penev f84c7960f3
freeradius3: add missing libbsd dependency to glibc
Fixes packages generation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-31 15:38:32 -08:00
Alexey Dobrovolsky 11aa0b9653 freeradius3: move "release_" from PKG_VERSION
The substring "release_" does not reflect the version number.
In addition, package names will be shorter.

Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
2020-10-14 13:02:22 +03:00
Alexey Dobrovolsky 7737abfeef freeradius3: add meta-package for default modules
This meta-package contains only dependencies for modules needed in
FreeRADIUS default configuration.

This commit adds missing description and install sections.

Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
2020-10-03 00:17:27 +03:00
Alexey Dobrovolsky 8b2792adc9 freeradius3: fix hostname invocation in radtest
Canonical radtest start results in an error:

$ radtest bob hello localhost 0 testing123
/usr/bin/radtest: line 1: hostname: not found
(0) Error parsing "stdin": Failed to get value

hostname command is not present in OpenWrt.
Instead, hostname can be obtained from file /proc/sys/kernel/hostname.

added: 004-get-hostname-from-proc-in-radtest.patch

Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
2020-09-05 01:31:28 +03:00
Alexey Dobrovolsky 6480acde4b freeradius3: enable radtest utility
radtest utility is used in many manuals to check the operation of
radius server.

At the moment all parameters must be specified at startup, for example:

$ radtest bob hello localhost 0 testing123 0 localhost

Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
2020-09-04 15:22:12 +03:00
Rosen Penev 9594a85404
freeradius3: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-04 19:17:01 -07:00
Alexey Dobrovolsky f6974b8f3c freeradius3: add missing conffiles to Makefile
Config files
/etc/freeradius3/policy.d/accounting
/etc/freeradius3/policy.d/filter
/etc/freeradius3/proxy.conf
/etc/freeradius3/sites-available/default
and link
/etc/freeradius3/sites-enabled/default
are in the freeradius3 package and are mentioned in the main config file
/etc/freeradius3/radiusd.conf
Thus, they must be explicitly specified in the Makefile.

File
/etc/freeradius3/sites/default
is not included in the package, is not created during installation,
is not mentioned in the main config file and should therefore be excluded
from the Makefile.

Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
2020-08-01 23:31:59 +03:00
Eiji MATSUMOTO f4e9f07391
freeradius3: Fix to init script.
To use eap tls, 'tmpdir' must be created before server starts.
This 'tmpdir' is used to store and verify client certificate,
and therefore radiusd do 'chmod go-rwx'.

If 'tmpdir' does NOT exists, server failed to start and default
'tmpdir' is '/tmp/radiusd'. So init script MUST create default
'tmpdir' like other directories.

Signed-off-by: Eiji MATSUMOTO <toudaiman@gmail.com>
2020-05-05 12:03:10 +09:00
Robby K cf1921ded5 freeradius3: Update to 3.0.21
Latest stable release.

Signed-off-by: Robby K <robbyke@gmail.com>
2020-04-28 09:58:10 +02:00
Robby K 71bea36878 freeradius3: Removed patches/004-fix-target-python-header-detection.patch as it is no longer needed for the freeradius3-mod-python3 package to compile and updated the Makefile to reflect this due to the following change/commit in freeradius:
307678b268

This is in preparation for the 3.0.21 update.

Signed-off-by: Robby K <robbyke@gmail.com>
2020-04-28 09:54:24 +02:00
Robby K 9b322cb8c4 freeradius3: Refreshed patches/002-disable-session-cache-CVE-2017-9148.patch in preparation for the 3.0.21 update.
Signed-off-by: Robby K <robbyke@gmail.com>
2020-04-28 09:23:21 +02:00
Robby K 6aa91d2210 freeradius3: Fix the ordering in the Makefile.
Signed-off-by: Robby K <robbyke@gmail.com>
2020-04-28 09:22:40 +02:00
Hannu Nyman 3e9224934b
Merge pull request #11918 from dvtirol/freeradius-rest
Support building freeradius3-mod-rest
2020-04-25 09:55:21 +03:00
Tobias Girstmair f97a349bdf freeradius3: Support building freeradius3-mod-rest
Signed-off-by: Tobias Girstmair <tobias.girstmair@tirol.gv.at>
2020-04-23 15:08:06 +02:00
Jeffery To 1bc2f4f3c6 treewide: Remove Python variants for non-Python packages
This removes Python-related build variants, and adds
PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate),
for non-Python packages. There should be no changes to build output.

This also updates some include paths for python3-package.mk and/or
python3-host.mk to be relative to the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Jeffery To 038d0831cd freeradius3: Remove Python 2 module package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 02:07:45 +08:00
Robby K a0f219ec5b freeradius3: Enable the rlm_python and rlm_python3 modules.
Signed-off-by: Robby K <robbyke@gmail.com>
2020-02-07 17:02:18 +01:00
Robby K c81d176e80 freeradius3: Fix proxy.conf file conflict.
It was provided by both the freeradius3 and freeradius3-mod-realm packages.
Now provided by the freeradius3 package only.

Signed-off-by: Robby K <robbyke@gmail.com>
2020-02-07 17:00:02 +01:00
Robby K a4202ca4ff freeradius3: Update to 3.0.20
Latest stable release, contains security fixes for EAP-PWD (side-channel leak), logrotate settings (CVE-2019-10143) and a DoS issue due to multithreaded BN_CTX access (CVE-2019-17185).

Also refreshed patches/002-disable-session-cache-CVE-2017-9148.patch due to the following changes/commits in freeradius:
bf1a1eda23
a3c46544b3

Signed-off-by: Robby K <robbyke@gmail.com>
2020-01-26 12:10:00 +01:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Audric Schiltknecht 3f6f6080d9 freeradius3: Fix conffiles for mod-sql-* packages
Signed-off-by: Audric Schiltknecht <audric.schiltknecht@viagenie.ca>
2019-05-10 07:38:48 -04:00
Robby K 15b21c1359 freeradius3: Update to 3.0.19
Latest stable release, contains security fixes for EAP-PWD.

Signed-off-by: Robby K <robbyke@gmail.com>
2019-04-16 16:11:14 +02:00
Robby K 5fe6e7d1f1 freeradius3: Workaround the fifo error introduced by the update to 3.0.18
Signed-off-by: Robby K <robbyke@gmail.com>
2019-04-16 16:08:25 +02:00
Robby K 7b122f6eeb freeradius3: Fix the libpcre dependency in Makefile.
Signed-off-by: Robby K <robbyke@gmail.com>
2019-04-16 16:06:27 +02:00
David Yang 76b013228d freeradius3: update to 3.0.18
Signed-off-by: David Yang <mmyangfl@gmail.com>
2019-04-02 22:51:10 +08:00
David Yang 6ed9c2d5ae freeradius3: Add support for SQL
Signed-off-by: David Yang <mmyangfl@gmail.com>
2019-04-02 22:00:13 +08:00
Eneas U de Queiroz f7db77282c
freeradius3: allow build without openssl engines
This applies a patch from upstream that avoids a call to ENGINE_cleanup
when the openssl library was built without engine support.

A workaround for a missing header check was used to silence a warning
about the implicit definition of RAND_load_file.  A proper fix has been
merged upstream as well.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2019-02-25 14:10:06 -03:00
Robby K bb7b3204e0 freeradius3: Enable the EAP-PWD module.
This enables the EAP-PWD module, which allows for logging in with only
a username and password, while still being secure (see the links below
for the details of this EAP method, if interested).

https://en.wikipedia.org/wiki/Extensible_Authentication_Protocol#EAP_Password_(EAP-PWD)

Also found this blog post which talks about EAP-PWD and its benefits:
https://dustri.org/b/eap-pwd-wifi-security-done-right.html

Signed-off-by: Robby K <robbyke@gmail.com>
2018-08-20 20:02:14 +02:00
Eneas U de Queiroz 9ded227056 freeradius3: update to 3.0.17
Latest stable release, support for openssl 1.1

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-05-25 17:33:12 -03:00
Hauke Mehrtens 7bb34ef7fc freeradius3: fix CVE-2017-9148
This takes the fix for CVE-2017-9148 from Debian.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-10-08 21:05:12 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Daniel Golle 92b2a187bb Merge pull request #4099 from dangowrt/freeradius3-ldap
freeradius3: build and package support for LDAP
2017-06-05 16:51:38 +02:00
Toke Høiland-Jørgensen 3922206a34 freeradius3: Bump package release
Forgot to bump the package release in commit 424f4e2c.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2017-04-26 16:35:56 +02:00
Toke Høiland-Jørgensen 424f4e2c63 freeradius3: A couple of small fixes
- Moves /etc/freeradius3/sites-{enabled,available}/inner-tunnel to be part of
  the freeradius3-mod-eap package. This prevents conflicts between
  freeradius3-mod-eap-peap and freeradius3-mod-eap-ttls which both included the
  file before. This fixes LEDE bug FS#678.

- Change the demo cert validity to be 1 year instead of 60 days. Should keep the
  cert valid for the duration of the LEDE release cycle (with some slack). This
  fixes #4239.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2017-04-26 16:32:16 +02:00
Daniel Golle c275909c38 freeradius3: build and package support for LDAP
The lack of LDAP support was one of the things which prevented users
from migrating from freeradius2 to freeradius3.
Enable LDAP in freeradius3 so we can finally burry freeradius2.

Reported-by: Martin Mueller <mm@sig21.net>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-03-03 10:34:55 +01:00
Toke Høiland-Jørgensen 6be33929b8 freeradius2/3: Fixes to init script. (#3022)
This fixes two issues with the freeradius package init scripts:

- The package installs libraries in /usr/lib/freeradius{2,3}, but the
  musl dynamic linker won't find them there unless LD_LIBRARY_PATH is
  set to include this directory. This adds an appropriate env statement
  to the procd init setup.

- procd expects services to stay in the foreground, or it will be unable
  to properly shut them down again. This adds the -f flag to radiusd to
  achieve that.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-08-05 17:49:33 +02:00
Lucile Quirion 0871991d8d freeradius3: add package
freeradius-server version 2.x has been marked End-Of-Life.
This commit adds freeradius-server version 3.0.11 in a new package.

This commit also introduces the option "freeradius3-default"
which activate all modules needed to run radiusd with its default
configuration.

- rlm_digest (HTTP Digest Authentication) has been added
- rlm_unix (System Authentication) has been added
- rlm_attr_rewrite has been deleted

Note that SQL and LDAP support has been disabled.

Signed-off-by: Lucile Quirion <lucile.quirion@savoirfairelinux.com>
2016-07-12 11:37:05 -04:00