OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: NW4FUN on March 19, 2022, 05:30:50 PM

Title: New Appliance - FreeRADIUS NOT WORKING
Post by: NW4FUN on March 19, 2022, 05:30:50 PM
Hello,
I've upped my appliance and had a clean install of OPNsense. Currently running 22.1.3

After having configured everything as it was on the old appliance, I've noticed FreeRADIUS refuses to start giving the below error in its logs:

/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"

I have no idea how to fix this and, oddly enough, when I tried to uninstall the plugin and manually deleted via shell /usr/local/etc/raddb when I reinstall FreeRADIUS I find all my settings as well as users back on the GUI

WHAT AM I MISSING???

:-[
Title: Re: New Appliance - FreeRADIUS NOT WORKING
Post by: Marten on July 12, 2022, 02:44:23 PM
Hi ,

I have patched an test-box to 22.1.10 en then installed FreeRadius, enabled it and have the same issue.


/usr/local/etc/rc.d/radiusd debug ends with:

~~~
/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"


and

ls -lh /usr/local/lib/freeradius-3*/rlm_pap.so
-rwxr-xr-x  1 root  wheel    29K Jul  6 03:24 /usr/local/lib/freeradius-3.0.25/rlm_pap.so

Kind regards Marten



Title: Re: New Appliance - FreeRADIUS NOT WORKING
Post by: Marten on July 12, 2022, 03:29:52 PM
in /usr/local/etc/raddb/radiusd.conf I canged

#libdir = /usr/local/lib/freeradius-3*
libdir = /usr/local/lib/freeradius-3.0.25

Then got this notification:

/usr/local/etc/rc.d/radiusd debug
/usr/local/etc/raddb/mods-enabled/pap[13]:  \
Failed to link to module 'rlm_pap': /usr/local/lib/freeradius-3.0.25/rlm_pap.so: Undefined symbol "EVP_sha3_224"


That points in the direction of crypto libs...

Since I change most systems from OpenSSL to LibreSSL, changed that back to Open SSL, and now Radius starts...

My gues is that FreeRadius has no LibreSSL included.... 


cheers Marten
Title: Re: New Appliance - FreeRADIUS NOT WORKING
Post by: mimugmail on July 12, 2022, 05:20:40 PM
Correct, Freeradius doesnt like libressl