Exec program debugging.

2006-03-20 Thread Eliot, Wireless and Server Administrator, Great Lakes Internet
I am trying to execute a program in the post-proxy section on Access-Accept packets to bring up bandwidth management for a user when they log in: (radiusd.conf) exec bwup { wait = no; program = "/etc/raddb/bwlimit start %{User-Name} %{Calling-Station-Id} %{Tunnel-Private-Group-Id:0} %{

Re: Exec-Program

2006-01-27 Thread Alan DeKok
Priscilla B <[EMAIL PROTECTED]> wrote: > Do we have to make our own file for this Exec-Program Yes. It's a program, like a shell script. > Or if not, can someone give me an example of this > file? scripts/exec-program-wait Alan DeKok. - List info/subscribe/u

Re: Debian + Exec-Program = Zombie process

2006-01-27 Thread Joe Maimon
George Chelidze wrote: versions. Can I make some tests to narrow down the problem, or some other actions. Best Regards, George I suppose you could add some debug code to where you believe the calls to waitpid should be/are The way I read it, without threads it should be in src/main/

Exec-Program

2006-01-27 Thread Priscilla B
Hi, Hope someone can help me to give me a more detailed explanation about Exec-Program. I see this in the acct_users file. DEFAULT Acct-Status-Type == Start Exec-Program = "/path/to/exec/acct/start" Do we have to make our own file for this Exec-Program or is there already on

Re: Debian + Exec-Program = Zombie process

2006-01-19 Thread George Chelidze
Alan DeKok wrote: George Chelidze <[EMAIL PROTECTED]> wrote: Zombies add up even when I recompile without --without-threads option. That sounds like a serious problem. Looking at the source, I don't see why, though. If I understood things correctly, if I compile radius without threads

Re: Debian + Exec-Program = Zombie process

2006-01-17 Thread Alan DeKok
George Chelidze <[EMAIL PROTECTED]> wrote: > Zombies add up even when I recompile without --without-threads option. That sounds like a serious problem. Looking at the source, I don't see why, though. > If I understood things correctly, if I compile radius without threads > support reap_childr

Re: Debian + Exec-Program = Zombie process

2006-01-17 Thread George Chelidze
Rashad Rustamoff wrote: as soon as I send accounting stop packet to radius, test.pl executes and becomes a zombie. (I tried bash script, c program with the same result.) 3890 ?Ss 0:00 /usr/local/freeradius/sbin/radiusd 3893 ?Z 0:00 \_ [test.pl] As far as I know, this

Re: Debian + Exec-Program = Zombie process

2006-01-17 Thread Rashad Rustamoff
> as soon as I send accounting stop packet to radius, test.pl executes and > becomes a zombie. (I tried bash script, c program with the same result.) > > 3890 ?Ss 0:00 /usr/local/freeradius/sbin/radiusd > 3893 ?Z 0:00 \_ [test.pl] > > As far as I know, this should have

Re: Debian + Exec-Program = Zombie process

2006-01-17 Thread George Chelidze
Bjørn Mork wrote: George Chelidze <[EMAIL PROTECTED]> writes: as soon as I send accounting stop packet to radius, test.pl executes and becomes a zombie. (I tried bash script, c program with the same result.) 3890 ?Ss 0:00 /usr/local/freeradius/sbin/radiusd 3893 ?Z 0:

Re: Debian + Exec-Program = Zombie process

2006-01-17 Thread Bjørn Mork
George Chelidze <[EMAIL PROTECTED]> writes: > as soon as I send accounting stop packet to radius, test.pl executes and > becomes a zombie. (I tried bash script, c program with the same result.) > > 3890 ?Ss 0:00 /usr/local/freeradius/sbin/radiusd > 3893 ?Z 0:00 \_ [tes

Debian + Exec-Program = Zombie process

2006-01-16 Thread George Chelidze
/etc/raddb/acct_users content: DEFAULT Acct-Status-Type == Stop Exec-Program = "/usr/local/bin/test.pl" /usr/local/bin/test.pl content: #-- #!/usr/bin/perl exit(0); #-- as soon as I send accounting stop

Re: Exec-Program-Wait multiple reply items

2006-01-09 Thread George Chelidze
Dusty Doris wrote: Hello, I have recently migrated to freeradius (latest stable on debian sarge - 1.0.2-4) and faced with the following problem: I use Exec-Program-Wait attribute as a reply item in users file. It returns 3 attributes: NAS-Identifier, Framed-IP-Address and Framed-Route. These

Re: Exec-Program-Wait multiple reply items

2006-01-09 Thread Dusty Doris
Hello, I have recently migrated to freeradius (latest stable on debian sarge - 1.0.2-4) and faced with the following problem: I use Exec-Program-Wait attribute as a reply item in users file. It returns 3 attributes: NAS-Identifier, Framed-IP-Address and Framed-Route. These attributes are

Re: Exec-Program-Wait multiple reply items

2006-01-09 Thread Yannick Deltroo
1:43 UT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I have recently migrated to freeradius (latest stable on debian > sarge - 1.0.2-4) and faced with the following problem: > > I use Exec-Program-Wait attribute as a reply item in users file. > It returns 3 att

Exec-Program-Wait multiple reply items

2006-01-07 Thread wrath
Hello, I have recently migrated to freeradius (latest stable on debian sarge - 1.0.2-4) and faced with the following problem: I use Exec-Program-Wait attribute as a reply item in users file. It returns 3 attributes: NAS-Identifier, Framed-IP-Address and Framed-Route. These attributes are printed

Re: mysql account and users account using exec-program-wait

2005-12-23 Thread Alan DeKok
SantaYeh <[EMAIL PROTECTED]> wrote: > I just want to know how can we stop the users checking if mysql return OK. doc/configurable_failover Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

mysql account and users account using exec-program-wait

2005-12-23 Thread SantaYeh
I store all user account in mysql, and freeradius works fine. And now, we have some special account that need to write a external program to do authentication. So we use the users file using DEFAULT auth-type = Accept with exec-program-wait. The problem is all mysql accounts doesn't work any

Re: rlm_sqlcounter exec program

2005-09-03 Thread Alan DeKok
Armin ranjbar <[EMAIL PROTECTED]> wrote: > does sqlcounter have the ability to run command (Exec-program) when > authentication fails because of reaching maximum usage ? No, but you can use module failover to do that. See doc/configurable_failover Alan DeKok. - List in

rlm_sqlcounter exec program

2005-09-03 Thread Armin ranjbar
does sqlcounter have the ability to run command (Exec-program) when authentication fails because of reaching maximum usage ? -- Communicate! It can't make things any worse. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Caching results of Exec-Program-Wait

2005-07-19 Thread Alan DeKok
Norman Elton <[EMAIL PROTECTED]> wrote: > Is there a way to cache the results of the called program, so that if > I get 5 requests in X number of seconds, the program is only called > once? Not really. I'd suggest writing a C module which does that. Alan DeKok. - List info/subscribe/uns

Caching results of Exec-Program-Wait

2005-07-19 Thread Norman Elton
I'm using Exec-Program-Wait for authentication requests. The called program returns some attributes. Is there a way to cache the results of the called program, so that if I get 5 requests in X number of seconds, the program is only called once? Thanks for any advice, Norman

Re: Exec-Program-Wait vs rlm_exec vs rlm_

2005-06-30 Thread Alan DeKok
Doug Hardie <[EMAIL PROTECTED]> wrote: > Recently I took a more detailed look at rlm_example and decided to > give that approach a try. Its actually quite easy to convert an Exec- > Program-Wait into a rlm_. Some of the steps are not obvious and > the really difficul

Exec-Program-Wait vs rlm_exec vs rlm_

2005-06-30 Thread Doug Hardie
I transitioned from Cistron radius some time ago. There the only option was Exec-Program-Wait. I had developed one that suited our needs. It transitioned quite well to freeradius. However, there are notes in various places that Exec-Program-Wait will somtime go away. The indicated

Re: Exec-Program-Wait: plaintext:

2005-06-20 Thread Americatel Centroamerica
--- Alan DeKok <[EMAIL PROTECTED]> wrote: > Put commas after the attribute values, like in the > "users" file. > > Alan DeKok. That did the trick, thanks Alan Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy

Re: Exec-Program-Wait: plaintext:

2005-06-20 Thread Alan DeKok
Americatel Centroamerica <[EMAIL PROTECTED]> wrote: > Hi, i have two servers with diferent versions of > freeradius, one with 0.9 and another with 1.0.1. > I have an Exec-Program-Wait perl script configured to > add some attributes to the reply, all is working > flawlessly on

Exec-Program-Wait: plaintext:

2005-06-17 Thread Americatel Centroamerica
Hi, i have two servers with diferent versions of freeradius, one with 0.9 and another with 1.0.1. I have an Exec-Program-Wait perl script configured to add some attributes to the reply, all is working flawlessly on the 0.9, but the same script doesnt work on the 1.0 server, the output items of the

Session-Timeout exec-program-wait

2005-05-25 Thread Svetlana Vyslanko
I call perl-script from user file (exec-wait-program). In my script I call attribute Session-Timeout and it works: print "Reply-Message += \"Session-Timeout=%{reply:Session-Timeout}\","; But I need to save value of Session-Timeout in variable. Can I do it? Regards, Svetlana - List info/subsc

Sending Session-Timeout on Exec-Program-Wait

2005-05-24 Thread Juan Nin
Hi, I'm using Exec-Program-Wait for user validation. On some cases, I want to send back the Session-Timeout According to what I've seen, on the script I execute on Exec-Program-Wait, I can send back this value like this: print "Session-Timeout=$timeout\n"; exit 0; # Grant

Re: Exec-Program-Wait

2005-05-23 Thread Alan DeKok
Alex Moreno <[EMAIL PROTECTED]> wrote: > Is Exec-Program-Wait a variable in a configuration file? Which one > if it is? doc/README Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Exec-Program-Wait

2005-05-21 Thread Alex Moreno
Hello, i´m freeradius newbie so excuse me if the question is an stupid one. I need to execute a python program of myself after a freeradius login. I´ve read on the faq that this can be done with Exec-Program-Wait but i don´t know how to use it. Is Exec-Program-Wait a variable in a configuration

RE: strange Exec-Program problem

2005-05-09 Thread Seferovic Edvin
Hi, is it possible to have a username passed to the Exec-Program script on Accounting-Update packets? Regards, Edvin Seferovic -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jandre Olivier Sent: Montag, 09. Mai 2005 15:25 To: freeradius-users

Re: strange Exec-Program problem

2005-05-09 Thread Jandre Olivier
Hi Edgars, I use the Exec-Program attribute in my /etc/raddb/acct_users for extra features DEFAULT Acct-Status-Type == Start Exec-Program = "/bin/bash /usr/local/scripts/radius/radius.sh" hope this helps Edgars wrote: okey, copied the same script file to the RADIUS server'

Re: strange Exec-Program problem

2005-05-09 Thread Edgars
okey, copied the same script file to the RADIUS server's box..the same problem occured: Error: Exec-Program: FAILED to execute Does someone have working setup similar to mine using Exec-Program attribute? DB_server<-->RADIUS_server<-->NAS Edgars Alan DeKok wrot

RE: Exec-Program-Wait vs rlm_exec

2005-05-06 Thread mmiranda
ou need to run an >>>> external program to make aditional checks when an access request in >>>> received, exec-program-wait or rlm_exec, im using >>>> exec-program-wait, sould i use rlm_exec instead, the script check >>>> some item like credit amount

Re: Exec-Program-Wait vs rlm_exec

2005-05-05 Thread Paul Hampson
to make aditional checks when an access request in > >> received, exec-program-wait or rlm_exec, im using exec-program-wait, > >> sould i use rlm_exec instead, the script check some item like credit > >> amount and returns 0 or 1 if success or fail , thanks > > >

Re: Exec-Program-Wait vs rlm_exec

2005-05-05 Thread Alan DeKok
[EMAIL PROTECTED] wrote: > you can point me on > some docuemtation on the options of rlm_exec, i cant found anything on the > web. The exec echo example is very basic, The rest of radiusd.conf contains more documentation about rlm_exec. Alan Dekok. - List info/subscribe/unsubscribe? See htt

RE: Exec-Program-Wait vs rlm_exec

2005-05-05 Thread mmiranda
[EMAIL PROTECTED] wrote: > On Tue, May 03, 2005 at 10:23:05AM -0600, [EMAIL PROTECTED] > wrote: >> Hi, what do you consider the best solution wheen you need to run an >> external program to make aditional checks when an access request in >> received, exec-program-wait or

Re: Exec-Program-Wait vs rlm_exec

2005-05-04 Thread Paul Hampson
On Tue, May 03, 2005 at 10:23:05AM -0600, [EMAIL PROTECTED] wrote: > Hi, what do you consider the best solution wheen you need to run an external > program to make aditional checks when an access request in received, > exec-program-wait or rlm_exec, im using exec-program-wait, so

Re: strange Exec-Program problem

2005-05-03 Thread Alan DeKok
Edgars <[EMAIL PROTECTED]> wrote: > On which machine is the script actually ecexuted - on the one i'm runnig > the RADIUS server or where the DB is located? On the RADIUS server. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Exec-Program-Wait vs rlm_exec

2005-05-03 Thread mmiranda
Hi, what do you consider the best solution wheen you need to run an external program to make aditional checks when an access request in received, exec-program-wait or rlm_exec, im using exec-program-wait, sould i use rlm_exec instead, the script check some item like credit amount and returns 0 or

Re: strange Exec-Program problem

2005-05-03 Thread Edgars
from the debug mode i'm getting the following: radius_xlat: '/var/radius/scripts/count.php edgars 10.5.8.103' Exec-Program: /var/radius/scripts/count.php edgars 10.5.8.103 Exec-Program output: Exec-Program: FAILED to execute /var/radius/scripts/count.php: No such file or directo

Re: strange Exec-Program problem

2005-05-02 Thread Dustin Doris
og file: > > Error: Exec-Program: FAILED to execute /var: No such file or directory > > For users for which i've not set the Exec-Wait as a Reply attribute, > everything work perfectly. > > > Can someone point me could be the problem? > Edgars > Looks like it ca

strange Exec-Program problem

2005-05-02 Thread Edgars
Hello, when trying to execute some script on each user login attempt using local DB everythings works as it supposed to do. But if using another RADIUS server as specifying to use the previously mentioned DB (like remote DB), getting the following errors in the log file: Error: Exec-Program

Output of exec-program-wait not added to reply

2005-04-30 Thread mmiranda
>Hi, i just upgraded my AAA server from redhat 7.3 / freeradius 0.9-pre to Gentoo / Freeradius 1.0.1. > have a perl script that adds some cisco vsa attributes to the reply item via Exec-Program-Wait, using simple print statements to STDOUT , with the new versions, > freeradius dont

Output of exec-program-wait not added to reply

2005-04-30 Thread mmiranda
Hi, i just upgraded my AAA server from redhat 7.3 / freeradius 0.9-pre to Gentoo / Freeradius 1.0.1. I have a perl script that adds some cisco vsa attributes to the reply item via Exec-Program-Wait, using simple print statements to STDOUT , with the new versions, freeradius dont add these items

Re: Exec-Program-Wait

2005-04-22 Thread Alan DeKok
"Emman S. Loloy" <[EMAIL PROTECTED]> wrote: > Is it possible for the output of Exec-Program-Wait become check item? No. See rlm_exec for that functionality. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Exec-Program-Wait

2005-04-21 Thread Emman S. Loloy
Hi Guys, Is it possible for the output of Exec-Program-Wait become check item? let say user files == DEFAULT Realm == foo, Login-Time := "Any0900-1200" Exec-Program-Wait := `/tmp/testscript`, Fall-Thr

RE: Exec-Program in acct_users doesn't work

2005-03-14 Thread Luis A.
CT_OUTPUT_OCTETS=313966728 _=/usr/bin/printenv -- > -Mensaje original- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En > nombre de Dustin Doris > Enviado el: viernes, 11 de marzo de 2005 16:32 > Para: freeradius-users@lists.freeradius.org > Asunto: Re: Exec-P

Re: Exec-Program in acct_users doesn't work

2005-03-11 Thread Dustin Doris
> Hi, > > I have a problem with Accounting-script-execution in raddb/acct_users : > -- > DEFAULT Acct-Status-Type == Stop > Exec-Program = "echo PRUEBA >> /home/pru.txt" > -- > I don't know if you can do it like that. You could try writin

Exec-Program in acct_users doesn't work

2005-03-11 Thread Luis A.
Hi, I have a problem with Accounting-script-execution in raddb/acct_users : -- DEFAULT Acct-Status-Type == Stop Exec-Program = "echo PRUEBA >> /home/pru.txt" -- The file where the program writes has written premission for everybody: -- -rw-rw-rw- 1 rootroot

Acct-Status-Type and Exec-Program-Wait

2005-03-08 Thread Abdul Lateef
HI, I am using mySQL db to accounting and authuntication. I want to run one perl script when the Accounting will be STOP. to calculate time and rate. But i don't where i should put Exec-Program-Wait to run my script. Already i had run one script to return h323-credit-time value from the

Exec-Program-Wait and logging failed password

2005-02-18 Thread David Sobin
I'm getting what seems to be an unexplained radius.log entry due to interaction between rejected access due to bad password and rejected access due to Exec-Program-Wait returning a non-zero value. Do I misunderstand the documentation, or is this a bug? Can anyone suggest a work-around,

Exec-Program-Wait

2005-02-02 Thread minotaurousc
t: '/usr/local/radius/etc/raddb/test jimmy _ localhost 20050203 14 /usr/local/radius/var/log/radius 0 /usr/local/radius/etc/raddb 2005-02-03 14:19:40' Exec-Program: /usr/local/radius/etc/raddb/test jimmy _ localhost 20050203 14 /usr/local/radius/var/log/radius 0 /usr/local/radius/e

RE: Re: Exec-Program-Wait Problem

2005-01-19 Thread Dustin Doris
> Quoting Dustin Doris <[EMAIL PROTECTED]>: > > > > > > > On Sun, 16 Jan 2005, Emman S. Loloy wrote: > > > > > Hi, > > > > > > > > > i have a problem using Exec-Program-Wait Attribute.. any comments or > > suggesti

RE: Exec-Program-Wait Problem

2005-01-17 Thread Amit Gupta
Craig Sent: Monday, January 17, 2005 3:57 PM To: freeradius-users@lists.freeradius.org Subject: Re: Exec-Program-Wait Problem Hi I am using a MySQL DB to store the list of NAS's - if I add one to the nas table, is there a way to get Freeradius to read it without having to restart radiusd? T

Re: Exec-Program-Wait Problem

2005-01-17 Thread Neil Craig
Hi I am using a MySQL DB to store the list of NAS's - if I add one to the nas table, is there a way to get Freeradius to read it without having to restart radiusd? Thanks in advance Neil - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RE: Re: Exec-Program-Wait Problem

2005-01-17 Thread Emman S. Loloy
Quoting Dustin Doris <[EMAIL PROTECTED]>: > > > On Sun, 16 Jan 2005, Emman S. Loloy wrote: > > > Hi, > > > > > > i have a problem using Exec-Program-Wait Attribute.. any comments or > suggestion how to fix this problem. here's my configuration. &

Re: Exec-Program-Wait Problem

2005-01-16 Thread Dustin Doris
On Sun, 16 Jan 2005, Emman S. Loloy wrote: > Hi, > > > i have a problem using Exec-Program-Wait Attribute.. any comments or > suggestion how to fix this problem. here's my configuration. > > /tmp/checkras > > #!/bin/sh > if [ $1 == "192.168.0.1

Exec-Program-Wait Problem

2005-01-15 Thread Emman S. Loloy
Hi,   i have a problem using Exec-Program-Wait Attribute.. any comments or suggestion how to fix this problem. here's my configuration.   /tmp/checkras   #!/bin/shif [ $1 == "192.168.0.1" ] ; thenexit -1 ; #failelif [ $1 == "192.168.0.2" ]; thenexit -1 ; #failfie

Block users based on mac address using External Exec program

2005-01-02 Thread pkumar
Hi, I had setup Freeradius on FC2 and its working fine. I want to block the users based on MAC address. Is it possible to do external verification of the UserName , Mac address of a particular user using Exec in Radius configuration. Please can anybody suugest me with an example of doing the

Re: Exec-Program

2004-12-29 Thread Santiago Balaguer García
acct_unique # Read the 'acct_users' file files } Then the acct-users file will be processed and your scripts should be executed. I have this in the acct-users file and that works for me: DEFAULT Acct-Status-Type == Start Exec-Program = "/opt/radhome/bin/acct.p

RE: Exec-Program

2004-12-28 Thread Mike Cisar
e addresses that particular issue. Cheers, >>>>> Mike <<<<< > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nate M > Sent: Tuesday, December 28, 2004 2:20 PM > To: freeradius-users@lists.f

Re: Exec-Program

2004-12-28 Thread Thor Spruyt
Mike Cisar wrote: DEFAULT Acct-Status-Type == "Start" Exec-Program = "/usr/local/bin/stopscript" DEFAULT Acct-Status-Type == "Stop" Exec-Program = "/usr/local/bin/startscript" I get the impression that the above

RE: Exec-Program

2004-12-28 Thread Nate M
2:49 PM > To: freeradius-users@lists.freeradius.org > Subject: Exec-Program > > Another simple one (hopefully)... this server is running on FreeRadius > 0.9.0 > (new server coming in 3 weeks will have newest version of FreeRadius, for > now this version is what I have to work with). &

Exec-Program

2004-12-28 Thread Mike Cisar
ype == "Start" Exec-Program = "/usr/local/bin/stopscript" DEFAULT Acct-Status-Type == "Stop" Exec-Program = "/usr/local/bin/startscript" The scripts are both owner/group to the radius user, have read/execute permissions,

Re: Acct-Unique-Session-Id as parameter for rlm_exec & Exec-Program

2004-11-24 Thread Alan DeKok
Jev <[EMAIL PROTECTED]> wrote: > Is Acct-Unique-Session-Id available as a variable that I can pass to > scripts invoked by rlm_exec or Exec-Program ? Yes, when accounting packets are received, after the acct_unique module is run. Alan DeKok. - List info/subscribe/unsubscri

Acct-Unique-Session-Id as parameter for rlm_exec & Exec-Program

2004-11-24 Thread Jev
Hi all, Is Acct-Unique-Session-Id available as a variable that I can pass to scripts invoked by rlm_exec or Exec-Program ? I tried %{Acct-Unique-Session-Id} and checked doc/variables.txt but I did not come across anything Regards, -Jev - List info/subscribe/unsubscribe? See http

Re: acct_users - Exec-Program not working

2004-11-22 Thread Kostas Kalevras
On Tue, 23 Nov 2004, Marek wrote: Hi Thor, thank you very much for replay, I will try to be more specific. I have freeradius 1.01 working on RedHat 9. It is working accepting users, creating detail files from few Cisco NAS boxes and START and STOP records are inserted into MySQL database. What I

Re: acct_users - Exec-Program not working

2004-11-22 Thread Marek
Hi Thor, thank you very much for replay, I will try to be more specific. I have freeradius 1.01 working on RedHat 9. It is working accepting users, creating detail files from few Cisco NAS boxes and START and STOP records are inserted into MySQL database. What I would like to do is to update the

Re: acct_users - Exec-Program not working

2004-11-21 Thread Thor Spruyt
Marek wrote: In my detail files I have Alive records but they are not updating mysql database. What has to be done to archive that? There's a conflict with your subject line! Either you have a problem with the external script or either with the rlm_sql module. Please specify what you're using to u

Re: acct_users - Exec-Program not working

2004-11-20 Thread Marek
Hi, maybe this is a stupid question but I can't figure it out. I am trying to get Alive updates for accounting side of the freeradius. In my detail files I have Alive records but they are not updating mysql database. What has to be done to archive that? Any pointers or answers would be appreciate

Re: acct_users - Exec-Program not working

2004-11-17 Thread Evert Meulie
ting packets. # DEFAULT Acct-Status-Type == Start Exec-Program = "/usr/sbin/set_filter.php" # Exec-Program = "/usr/bin/php4 -q /usr/sbin/set_filter.php" # DEFAULT Acct-Status-Type == Stop Exec-Program = "/usr/sbin/set_filter.php" # #DEFAULT Acct-Status-Type == Alive #

acct_users - Exec-Program not working

2004-11-03 Thread Mike O'Connor
# $Id: acct_users,v 1.3.4.1 2003/08/26 17:41:48 phampson Exp $ # # This is like the 'users' file, but it is processed only for # accounting packets. # DEFAULT Acct-Status-Type == Start Exec-Program = "/usr/sbin/set_filter.php" # Exec-Program = "/usr/bin/php4 -q /usr/sbin/set_fil

Re: Exec-Program-Wait question and rlm_exec

2004-10-27 Thread Paul Hampson
On Tue, Oct 26, 2004 at 05:17:57PM +0300, Kostas Zorbadelos wrote: > On Tue, Oct 26, 2004 at 10:20:48AM -0400, Alan DeKok wrote: > > Kostas Zorbadelos <[EMAIL PROTECTED]> wrote: > > > First of all I have a question for Exec-Program-Wait. I need to run an > > > e

Re: Exec-Program output: freeradius not reading response?

2004-10-27 Thread Paul Hampson
On Tue, Oct 26, 2004 at 02:54:45PM -0700, Nate M wrote: > > > > I've done some troubleshooting of my own, and unsure if this is helpful or > > not, but the process appears to be hanging indefinitely until cleaned up > > within this section of threads.c (beginning line 1141). The line in > > parti

Re: Exec-Program output: freeradius not reading response?

2004-10-27 Thread Alan DeKok
"Nate M" <[EMAIL PROTECTED]> wrote: > Additionally.. I just compiled 2.4.27 kernel on this machine and the problem > stops. 2.6.5, 2.6.8.1 and 2.6.9 all vomit. 2.6 bug perhaps? Looks like it. If the FreeRADIUS code works on other platforms, and other versions of Linux, then I'm inclined to sa

RE: Exec-Program output: freeradius not reading response?

2004-10-26 Thread Nate M
> > I've done some troubleshooting of my own, and unsure if this is helpful or > not, but the process appears to be hanging indefinitely until cleaned up > within this section of threads.c (beginning line 1141). The line in > particular it hangs on is the "rcode = ..." line. I am not enuff of a

RE: Exec-Program output: freeradius not reading response?

2004-10-26 Thread Nate M
> > "Nate M" <[EMAIL PROTECTED]> wrote: > > > Problem exists, when posting multiple requests to radiusd it > > occasionally > > > will not receive or somehow omit the exit status of Exec-Program-Wait. > > > > I haven't be

Re: Exec-Program output: freeradius not reading response?

2004-10-26 Thread Alan DeKok
"Nate M" <[EMAIL PROTECTED]> wrote: > While troubleshooting I also confirmed the same issue with rlm_exec doing a > similar task to what I'm accomplishing in exec-program-wait. rlm_exec calls the same functions to do the exec, so it should have all the same &quo

RE: Exec-Program output: freeradius not reading response?

2004-10-26 Thread Nate M
> "Nate M" <[EMAIL PROTECTED]> wrote: > > Problem exists, when posting multiple requests to radiusd it > occasionally > > will not receive or somehow omit the exit status of Exec-Program-Wait. > > I haven't been able to reproduce it here, so I'm

Re: Exec-Program output: freeradius not reading response?

2004-10-26 Thread Alan DeKok
"Nate M" <[EMAIL PROTECTED]> wrote: > Problem exists, when posting multiple requests to radiusd it occasionally > will not receive or somehow omit the exit status of Exec-Program-Wait. I haven't been able to reproduce it here, so I'm not sure how to fix it.

Re: Exec-Program-Wait question and rlm_exec

2004-10-26 Thread Alan DeKok
Kostas Zorbadelos <[EMAIL PROTECTED]> wrote: > Actually the conversation in that thread ended by mentioning the ideas > rlm_exec should follow. I didn't see any patch that implemented > them. If there is such a patch please direct me to it and I > will test it. Nope, I haven't seen a patch, sorr

Re: Exec-Program-Wait question and rlm_exec

2004-10-26 Thread Kostas Zorbadelos
On Tue, Oct 26, 2004 at 10:20:48AM -0400, Alan DeKok wrote: > Kostas Zorbadelos <[EMAIL PROTECTED]> wrote: > > First of all I have a question for Exec-Program-Wait. I need to run an > > external C program that expects in its environment a proper > > LD_LIBRARY_PATH to

Re: Exec-Program-Wait question and rlm_exec

2004-10-26 Thread Alan DeKok
Kostas Zorbadelos <[EMAIL PROTECTED]> wrote: > First of all I have a question for Exec-Program-Wait. I need to run an > external C program that expects in its environment a proper > LD_LIBRARY_PATH to run. I followed the obvious solution of using a > wrapper bash shell scr

Exec-Program-Wait question and rlm_exec

2004-10-26 Thread Kostas Zorbadelos
Hello to everyone. First of all I have a question for Exec-Program-Wait. I need to run an external C program that expects in its environment a proper LD_LIBRARY_PATH to run. I followed the obvious solution of using a wrapper bash shell script, that sets the environment and calls the C program via

Exec-Program output: freeradius not reading response?

2004-10-25 Thread Nate M
Problem exists, when posting multiple requests to radiusd it occasionally will not receive or somehow omit the exit status of Exec-Program-Wait. -- log snippet - radius_xlat: '/etc/raddb/scripts/test.pl' Exec-Program: /etc/raddb/scripts/test.pl Waking up in 3 seconds... Exec-Prog

RE: Exec-Program-Wait & Unresponsive Child Errors

2004-10-14 Thread Nate M
(Bump) - Nathan Miller -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nate M Sent: Tuesday, October 12, 2004 12:34 PM To: [EMAIL PROTECTED] Subject: Exec-Program-Wait & Unresponsive Child Errors Good morning. I've got some weirdness with f

Exec-Program-Wait & Unresponsive Child Errors

2004-10-12 Thread Nate M
ccept Exec-Program-Wait = "/etc/raddb/scripts/pre_auth.sh", Fall-Through = Yes There are no other authentication mechanisms enabled, all requests go to pre_auth.sh. The script is configured to only exit 0 (although I get identical results when rejecting requests with e

Re: exec-program & exec-program-wait

2004-10-07 Thread Edgars
ok, thanks a lot for the information! Edgars Thor Spruyt wrote: Edgars wrote: can someone tell me what is the difference between these attributes? Exec-Program executes a program without waiting for any output from the program. Exec-Program executes a program and waits for any output from

Re: exec-program & exec-program-wait

2004-10-07 Thread Thor Spruyt
Edgars wrote: > can someone tell me what is the difference between these attributes? Exec-Program executes a program without waiting for any output from the program. Exec-Program executes a program and waits for any output from the program. You need this if you want the program to set attribu

Re: exec-program & exec-program-wait

2004-10-07 Thread Kyriaki Gali
Exec-Program-Wait : wait to finish authorization and then executed Kyriaki Gali, IT Applications Specialist Kinetix Tele.com Support Center, Tel & Fax: +30 2310 256140 GSM: +30 6947 723737 http://www.kinetix.gr e-mail: [EMAIL PROTECTED] - Original Message - From: "Edgars

exec-program & exec-program-wait

2004-10-07 Thread Edgars
Hello, can someone tell me what is the difference between these attributes? Does the first one call for a script before authentication, the second one after? Thanks! Edgars - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Exec-Program help

2004-10-06 Thread Paul Hampson
On Tue, Oct 05, 2004 at 05:02:55PM -0700, Ivo Petrov wrote: > Thanks much but I need the script executed after > successful authentication not before that. Any way > thanks my simple script was executed correctly. You might want to look at rlm_exec, which gives better control on when the script is

Re: Exec-Program and iproute2

2004-10-06 Thread Paul Hampson
On Tue, Oct 05, 2004 at 04:59:13PM -0700, Ivo Petrov wrote: > Thanks for advice but in radiusd.conf I wrote: > > user root > group root > > and radiusd runs as root or that is not enough. > I tried running simple script and it works, but > when I change the script with the one that makes > shapi

Re: Exec-Program help

2004-10-05 Thread Ivo Petrov
Thanks much but I need the script executed after successful authentication not before that. Any way thanks my simple script was executed correctly. Regards Ivo Petrov --- Edgars <[EMAIL PROTECTED]> wrote: > Hello, > > see what's written in logs. Try Exec-Program-Wait &g

Re: Exec-Program and iproute2

2004-10-05 Thread Ivo Petrov
raper. Can you tell me how to do it. Thanks in advance. Ivo Petrov --- Paul Hampson <[EMAIL PROTECTED]> wrote: > On Sun, Oct 03, 2004 at 02:22:17AM -0700, Ivo Petrov > wrote: > > Hi all, > > > > I'm trying to shape ppp+ interfaces after > successful > >

Re: Exec-Program help

2004-10-04 Thread Paul Hampson
On Mon, Oct 04, 2004 at 02:20:49AM -0700, Ivo Petrov wrote: > I have a problem using Exec-Program. I've put the line > in radreply table > (4,'test1','Exec-Program',':=','/path/script') but the > script was not executed. > Can anybody te

Re: Exec-Program help

2004-10-04 Thread Edgars
Hello, see what's written in logs. Try Exec-Program-Wait instead. Edgars Ivo Petrov wrote: Hi all, I have a problem using Exec-Program. I've put the line in radreply table (4,'test1','Exec-Program',':=','/path/script') but the script was not execu

Re: Exec-Program and iproute2

2004-10-04 Thread Paul Hampson
On Sun, Oct 03, 2004 at 02:22:17AM -0700, Ivo Petrov wrote: > Hi all, > > I'm trying to shape ppp+ interfaces after successful > authentication using Exec-Program. radiusd runs as > root, > in mysql radreply table the last row for the user > contains: Exec-Program = &#x

Exec-Program help

2004-10-04 Thread Ivo Petrov
Hi all, I have a problem using Exec-Program. I've put the line in radreply table (4,'test1','Exec-Program',':=','/path/script') but the script was not executed. Can anybody tell me why? script : #!/bin/bash ps aux | grep radiusd > result Whe

<    1   2   3   >