Unlang to Called-Station-Id to get SSID
Hi, Iam trying to do a conditional logic using unlang on the default sites-enabled to see if the Called-Station-Id has myssid. So the logic I am using on default sites is: if ("%{Called-Station-Id}" =~ /myssid/) { update control { Proxy-To-Realm := 'visitors-ssid' } } and i have another site under sites-enabled called visitors-ssid. from the logs, i can see the ssid is there as i have configured on radiusd.conf to show msg_goodpass = "%{Called-Station-Id}" On on visitors-ssid site, i have allowed mschap authentication to a particular domain. somehow from the logs the logic fails, just wondering if Iam on the right path. What i am trying to achieve is based on SSID, authenticate users on different sites rather than all authentication going via inner-tunnel. Grateful if someone has came with the same scenario or managed to implement a similar scenario. Thanks, Vikash
Looks fairly okay. However without sending your output from radiusd -X we can only guess. Which is pointless. Don't rely on some random output from logfile. Do the basic steps. ..which is run radiusd in full debug mode. Look at the output, see what is happening to your logic alan
participants (2)
-
Alan Buxey -
Vikash Gounder