sorry alan, perhaps I'm mixing up my examples in an attempt to get this working...
1. where (or in which file) do I add the unlang code?
2. how do i update the reply?
I currently have the following code in my proxy-inner-tunnel file :-
post-proxy {
eap
if (proxy-reply:Access-Accept) {
update proxy-reply { Framed-IP-Address := "%{sql:SELECT Value FROM `radreply` WHERE UserName ='%{User-Name}' AND Attribute = 'Framed-IP-Address'}" }
}
when i start freeradius -X i don't get any errors. the microsoft radius box is down at the moment on the other side so I can't test any further at the moment but will get back as soon as the server is up again.
tx, g