Freeradius fails to start after update to 21.1.7

Started by athurdent, June 16, 2021, 02:35:39 PM

Previous topic - Next topic
Log:

2021-06-16T14:31:55 Error: /usr/local/etc/raddb/mods-enabled/eap[15]: Instantiation failed for module "eap"
2021-06-16T14:31:55 Error: rlm_eap (EAP): Failed to link rlm_eap_leap: Cannot open "/usr/local/lib/freeradius-3*/rlm_eap_leap.so"


Tried deleting and reinstalling the plugin to no avail.

June 16, 2021, 02:42:44 PM #1 Last Edit: June 16, 2021, 02:49:26 PM by mrpink
Cisco LEAP was removed in version 3.0.22

QuoteRemove native support for Cisco LEAP. It is insecure, and should not be used. Proxying LEAP is still supported.

Open the configuration /usr/local/etc/raddb/mods-available/eap and remove the section about leap and restart freeradius.

EDIT:

Even better, please open the file /usr/local/opnsense/service/templates/OPNsense/Freeradius/mods-enabled-eap and remove the leap section (lines 102 to 115).

Might be worth notifying the plugin maintainer.

For a quick fix:

# opnsense-revert -r 21.1.6 freeradius3


Cheers,
Franco


Wow, thank you very much mrpink, mimugmail and franco. Already fixed I see, great work!  :)

Team effort. Sometimes it's hard to protect against non-core changes in the ecosystem.

It will likely be hotfixed tomorrow for good measure.


Cheers,
Franco

Btw same (similar?) thing happens with PAP:
2021-06-17T16:58:51 radiusd[48579] /usr/local/etc/raddb/mods-enabled/pap[13]: Failed to link to module 'rlm_pap': Cannot open "/usr/local/lib/freeradius-3*/rlm_pap.so"

Michael will take a look, although from the release notes nothing changed for PAP.

About LEAP it's a bit funny now that FreeRADIUS released 3.0.23[1] and it says...

> Silently ignore LEAP configuration instead of erroring out.

¯\_(ツ)_/¯


Cheers,
Franco

[1] https://freeradius.org/release_notes/?br=3.0.x&re=3.0.23

Quote from: szty0pa on June 17, 2021, 05:08:17 PM
Btw same (similar?) thing happens with PAP:
2021-06-17T16:58:51 radiusd[48579] /usr/local/etc/raddb/mods-enabled/pap[13]: Failed to link to module 'rlm_pap': Cannot open "/usr/local/lib/freeradius-3*/rlm_pap.so"

Does this happen during startup?

Same here also get the pap[13] error, happens on start or restart of the Service the workaraound is working for now.

Thanks


Quote from: franco on June 16, 2021, 03:00:47 PM
Might be worth notifying the plugin maintainer.

For a quick fix:

# opnsense-revert -r 21.1.6 freeradius3


Cheers,
Franco

Quote from: mimugmail on June 18, 2021, 12:41:32 PM
Quote from: szty0pa on June 17, 2021, 05:08:17 PM
Btw same (similar?) thing happens with PAP:
2021-06-17T16:58:51 radiusd[48579] /usr/local/etc/raddb/mods-enabled/pap[13]: Failed to link to module 'rlm_pap': Cannot open "/usr/local/lib/freeradius-3*/rlm_pap.so"

Does this happen during startup?

Yes this happens at startup and if/when i try to start radiusd manually. (Same thing happens with the freeradius plugin 1.9.13 as well.)


Running a health audit would be beneficial to rule out local issues.


Cheers,
Franco