Re: exec-program-wait to send back AV pairs to freeradius

2006-09-07 Thread Alan DeKok
Shankar Ganesh C <[EMAIL PROTECTED]> wrote:
> Below is the code i am trying in the exec-program-wait
> 
> putenv("Calling-Station-ID=10")

  That is not the documented way to send attributes back to the server.

  See scripts/exec-program-wait

> I am trying to set the accounting response packets with this value
> pairs in the rad_accounting using pairmove but still my accounting
> response packets does not contain this attributes value pairs.

  Accounting responses are not allowed to contain any attributes.

  Alan DeKok.
--
  http://deployingradius.com   - The web site of the book
  http://deployingradius.com/blog/ - The blog
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


exec-program-wait to send back AV pairs to freeradius

2006-09-07 Thread Shankar Ganesh C



Hi 
All,
 
I am trying to set 
values for more than one attributes in the exec-program-wait for accounting 
start packets.
 
Below is the code i 
am trying in the exec-program-wait
 
putenv("Calling-Station-ID=10") 
putenv("Called-Station-ID=50")
Putenv("Acct-Session-ID="20")
return 
0;
 
I have set the 
exec-wait=yes in the radiusd.conf
 
I am not sure 
whether freeradius picks all this values and sets in the valuepairs of the 
radius_exec_program ()
 
I am trying to set 
the accounting response packets with this value pairs in the rad_accounting 
using pairmove but still my accounting response packets does not contain 

this attributes 
value pairs.
 
Can some body help 
me to solve this problem ?
 
Thanks and 
regards
Shankar 
ganesh
 
 
 
 
 
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html