Re: Rewriting User-Name in pre-proxy

2009-05-22 Thread William Taylor
On May 22, 2009, at 6:13 AM, Alan DeKok wrote If you use the Perl module rather than exec'ing a program, it would be more efficient. Alan DeKok. - Hi Alan thanks for the response. I tried to use the perl module at first but the hash was read only. So I couldn't figure out how to

Re: Rewriting User-Name in pre-proxy

2009-05-22 Thread William Taylor
On May 22, 2009, at 6:33 AM, Alan DeKok wrote: The REQUEST hash is for the *request*. You are trying to edit the *proxy* request. Use: $RAD_REQUEST_PROXY{'Attr-name'} = foo; Alan DeKok. Hmmm i'll dbl check. Last time RAD_REQUEST_PROXY wasn't available. - List

Re: Rewriting User-Name in pre-proxy

2009-05-21 Thread William Taylor
On May 18, 2009, at 11:16 AM, William Taylor wrote: Im currently using freeradius 2.1.4 I need to lookup a username in a dbm and rewrite it before sending off the proxy request. I have achieved this by using the below method. But I was wondering if there was a better way. It would seem

Rewriting User-Name in pre-proxy

2009-05-18 Thread William Taylor
Im currently using freeradius 2.1.4 I need to lookup a username in a dbm and rewrite it before sending off the proxy request. I have achieved this by using the below method. But I was wondering if there was a better way. It would seem that invoking perl with every auth request might be bad.