Problem In Freeradius 3.0.11
Hello , Iam using Freeradius 3.0.11 And I am using this code in /etc/raddb/default authorize { .... update control { Auth-Type := `/usr/bin/php /var/www/html/set_auth_type.php %{User-Name} %{User-Password} %{Client-IP-Address} 3` } } } in v2.1.x iam using this code in php if ($username == "Name"){ echo "Reject"; }else{ echo "Ok"; } I am Using Ok To Skip But in v3.0.11 Not Skip But Get Error And When Using Accept user Login Without Check Attributes Sorry For My English
update control { Auth-Type := `/usr/bin/php /var/www/html/set_auth_type.php %{User-Name} %{User-Password} %{Client-IP-Address} 3` } }
That's not going to work. The unlang syntax is wrong. Use something like: Auth-Type := "%{echo:/usr/bin/php ...}" You can't simply use back ticks and expect things to work... With Regards Stefan Paetow Moonshot Industry & Research Liaison Coordinator t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet jisc.ac.uk Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
participants (2)
-
Stefan Paetow -
تعلم البرمجة