|
Hi again,
Alright so i got the Exec-Program-Wait into the
database
to actually work, but a simple minor problem
arrived which
I can't again seem to find out the solution to,
Here it is, it seems to authorize the user fine
with the password
it logs into the radius and everything and then
right after
the execution of the program I wrote in C it dies
out,
I even attempted to write it in perl here is the
code i wrote
Note that I compiled the c version like
so
gcc -c send.c
gcc send.o -o send
I then chowned it to user root and group wheel on
FreeBSD
then chmod 777 just to be safe and then setup
FreeRadius
to run as user root:wheel
As for the perl program I chmod 777 send.pl as
well
and same ownership.
------- C Version
#include <stdio.h>
int main (int argc, char
*argv[])
{ printf("h323-credit-amount = \"h323-credit-amount=123\","); printf("h323-currency = \"h323-currency=USD\","); printf("h323-return-code = \"h323-return-code=0\""); return
0;
} ---- PERL Version
#!/usr/bin/perl
print "h323-credit-amount =
\"h323-credit-amount=123\",";
print "h323-currency = \"h323-currency=USD\","; print "h323-return-code = \"h323-return-code=0\""; # accept
exit 0; -------- And here is the error I
receive
rlm_pap: login attempt by "12345678" with password
123
rlm_pap: Using password 123 for user 12345678 authentication. rlm_pap: Using clear text password. rlm_pap: User authenticated succesfully modcall[authenticate]: module "pap" returns ok modcall: group authtype returns ok radius_xlat: '/home/radius/send' Exec-Program: /home/radius/send Exec-Program-Wait: value-pairs: h323-credit-amount = "h323-credit-amount=123",h323-currency = "h323-currency=USD",h323-return-code = "h323-return-code=0" Exec-Program: Abnormal child exit Delaying request 4 for 1 seconds Finished request 4 Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 172 to 209.29.129.132:1645 Reply-Message = "\r\nAccess denied (external check failed)." Waking up in 4 seconds... P.S: Is there anyway I can pass a paramater for
exampe a Cisco VSA
like the collected digits for the destination
number,
to to be passed from the Cisco to the Radius and
onto my script
/ application ?
Thanks in advance for any help,
Kasra
|
- Re: Exec-Program: Abnormal child exit Kasra Robert Rasaee
- Re: Exec-Program: Abnormal child exit Alan DeKok
