Lost Captive Portal files on v.2.4.4
-
Hi All,
I have made some modifications on Captive Portal PHP code, on version 2.4.3 (on files radius_authentication.inc and radius_accounting.inc) to send SSID name based on network to my RadiusDesk database; see below what I've added.
*$idSSID = getNasIP(); if ($idSSID=="172.20.22.254"){ $calledstationid = $clientmac.":pascoli_insegnanti";} if ($idSSID=="172.20.26.254"){ $calledstationid = $clientmac.":pascoli_ospiti";} if ($idSSID=="172.20.24.254"){ $calledstationid = $clientmac.":pascoli_studenti";} user logging from*
With this modifications, I permit authentication only if an user is assigned to an SSID on my RadiusDesk.
I've today updated my pfSense to version 2.4.4 and I've discovered that the Radius server configuration on Captive Portal is different (you have to use User Manager section) and that the files I've modified are disappeared.
Where are the files?
How I can port the modifications to the new Captive Portal?Thank you!
-
radius_authentication.inc and radius_accounting.inc have been removed. they have been replaced by two functions ( radius_backed() inside /etc/auth.inc for authentication, captiveportal_send_server_accounting() inside /etc/captiveportal.inc for accounting)
as long as you don't use RADIUS anywhere else, you could maybe update these functions.
However be careful : radius_backed() could be used by few other parts of pfSsense : openVPN module and IPsec Xauth module are using it for instance.
as long as you don't use RADIUS anywhere else, you could maybe update these functions.