Re: Set Calling-Station-Id after first authorization

2010-02-13 Thread Kledi Andoni
After a bit of work, I was able to solve it by running a php script in the preacct process. I added the external program with exec: exec 1stlogin { wait = yes program = /usr/bin/php /root/1stlogin.php %{User-Name} %{Calling-Station-Id}

Re: Set Calling-Station-Id after first authorization

2010-02-13 Thread EasyHorpak.com
Kledi Andoni wrote: After a bit of work, I was able to solve it by running a php script in the preacct process. I added the external program with exec: exec 1stlogin { wait = yes ?? ? ? ? ? ? ? ?program = "/usr/bin/php /root/1stlogin.php %{User-Name}

Set Calling-Station-Id after first authorization

2010-02-12 Thread Kledi Andoni
Hello, I need a way to set the Calling-Station-Id attribute automatically for each user after the first authorization request. In this way the user will be allowed to authorize only from that mac address in the future. I am using freeradius 1.1.7 with mysql. I do not have the expertise to

Re: Set Calling-Station-Id after first authorization

2010-02-12 Thread EasyHorpak.com
Kledi Andoni wrote: Hello, I need a way to set the Calling-Station-Id attribute automatically for each user after the first authorization request. In this way the user will be allowed to authorize only from that mac address in the future. I am using freeradius 1.1.7 with mysql. I do not