exec program, but post-auth
Hello !! Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user. i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user... how i can do this ? thanks !! -- Sds. Alexandre Jeronimo Correa Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net Linux User ID #142329 UNOTEL S/A - http://www.unotel.com.br
Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user.
i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user...
how i can do this ?
If radius is not assigning IP's NAS will send them in accounting packets. Ivan Kalik Kalik Informatika ISP
auth are working fine... but i need execute one script after auth OK to get the IP that radius assigned to user, have any idea how i can do this ?! thanks !!! tnt@kalik.net wrote:
Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user.
i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user...
how i can do this ?
If radius is not assigning IP's NAS will send them in accounting packets.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Sds. Alexandre Jeronimo Correa Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net Linux User ID #142329 UNOTEL S/A - http://www.unotel.com.br
Huh? Ivan gave you the answer already. Read it again and then look into what accounting packets are. Sent from my iPhone On 4 Nov 2008, at 02:06, "Alexandre J. Correa - Onda Internet" <alexandre@ondainternet.com.br
wrote:
auth are working fine... but i need execute one script after auth OK to get the IP that radius assigned to user, have any idea how i can do this ?!
thanks !!!
tnt@kalik.net wrote:
Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user.
i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user...
how i can do this ?
If radius is not assigning IP's NAS will send them in accounting packets.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Sds.
Alexandre Jeronimo Correa
Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net
Linux User ID #142329
UNOTEL S/A - http://www.unotel.com.br
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
So radius *is* assigning IP's? Where? If it's ippool/sqlippool list your exec program after these in post-auth section. If IP's are assigned by DHCP you have to get it from accounting packets. But that will work for radius assigned IP's too. Ivan Kalik Kalik Informatika ISP Dana 4/11/2008, "Alexandre J. Correa - Onda Internet" <alexandre@ondainternet.com.br> piše:
auth are working fine... but i need execute one script after auth OK to get the IP that radius assigned to user, have any idea how i can do this ?!
thanks !!!
tnt@kalik.net wrote:
Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user.
i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user...
how i can do this ?
If radius is not assigning IP's NAS will send them in accounting packets.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Sds.
Alexandre Jeronimo Correa
Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net
Linux User ID #142329
UNOTEL S/A - http://www.unotel.com.br
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Ola use: &{nome do dicionario} Ex: &{Call-Station-Id} -----Mensagem original----- De: freeradius-users-bounces+adriano=ipinfo.com.br@lists.freeradius.org [mailto:freeradius-users-bounces+adriano=ipinfo.com.br@lists.freeradius.org] Em nome de Alexandre J. Correa - Onda Internet Enviada em: segunda-feira, 3 de novembro de 2008 19:43 Para: FreeRadius users mailing list Assunto: exec program, but post-auth Hello !! Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user. i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user... how i can do this ? thanks !! -- Sds. Alexandre Jeronimo Correa Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net Linux User ID #142329 UNOTEL S/A - http://www.unotel.com.br - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user.
i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user...
how i can do this ?
Where is "here"? In what section are you trying to run the script? Ivan Kalik Kalik Informatika ISP
Thanks for answers, i obtained ip, acctound-id, etc etc from preacct section, adding exec to section !! script filter with Acct-Status-Type = Start working fine now !! Ivan, in it´s first message i didn´t read to try with accouting packets !! thanks again !! Regards.. tnt@kalik.net wrote:
Here i use Exec-Program-Wait to validade data AFTER auth OK, i need to execute other script AFTER auth OK to get IP address assigned to user.
i´m trying to pass %f to my script but return "?.?.?.?" because at this moment, radius not assigned ip for user...
how i can do this ?
Where is "here"? In what section are you trying to run the script?
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Sds. Alexandre Jeronimo Correa Onda Internet - http://www.ondainternet.com.br OPinguim Hosting - http://www.opinguim.net Linux User ID #142329 UNOTEL S/A - http://www.unotel.com.br
participants (4)
-
Adriano - IPinfo -
Alexandre J. Correa - Onda Internet -
Anders Holm -
tnt@kalik.net