diff options
author | Ermal <eri@pfsense.org> | 2010-06-17 19:33:52 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-17 19:33:52 +0000 |
commit | 34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b (patch) | |
tree | 03177691bdce464e4e6ff23b4395afdef961461a /usr/local/captiveportal | |
parent | 822b687b162a5022d9d687cf98867149e1af126f (diff) | |
download | pfsense-34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b.zip pfsense-34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b.tar.gz |
Show even VIP's in the list. This is copied from nat code and probably should be generalized.
Diffstat (limited to 'usr/local/captiveportal')
-rw-r--r-- | usr/local/captiveportal/radius_authentication.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr/local/captiveportal/radius_authentication.inc b/usr/local/captiveportal/radius_authentication.inc index bd5b74e..1f7e2b5 100644 --- a/usr/local/captiveportal/radius_authentication.inc +++ b/usr/local/captiveportal/radius_authentication.inc @@ -61,13 +61,16 @@ function RADIUS_AUTHENTICATION($username,$password,$radiusservers,$clientip,$cli switch($radiusvendor) { case 'cisco': - $calledstationid = $clientmac; - $callingstationid = $clientip; - break; - + $calledstationid = $clientmac; + $callingstationid = $clientip; + break; default: - $calledstationid = get_interface_ip($config['captiveportal']['radiussrcip_attribute']); - $callingstationid = $clientmac; + if (is_ipaddr($config['captiveportal']['radiussrcip_attribute'])) + $calledstationid = $config['captiveportal']['radiussrcip_attribute']; + else + $calledstationid = get_interface_ip($config['captiveportal']['radiussrcip_attribute']); + $callingstationid = $clientmac; + break; } // Create our instance |