Re: exec-program-wait

2004-08-19 Thread Alan DeKok
Amedzekor Kafui <[EMAIL PROTECTED]> wrote: > If the exec-program-wait is written in C/C++ do I > necessarily need to system ("echo Framed-IP-Address = > 255.255.255.255") to get the replies back to the NAS. > > Can I use printf to achieve the same effect? Yes. Alan DeKok. - List info/subsc

Re: Exec-Program-Wait attributes not included in Access-Accept

2004-07-26 Thread Doug Hardie
On Jul 26, 2004, at 06:58, Thor Spruyt wrote: Hi, I have freeradius 0.9.3 running with Postgresql database backend. The only thing the radius checks is the password and then executes an external script if authentication is ok. The section in the users file is: DEFAULT Auth-Type = Local

Re: Exec-Program-Wait attributes not included in Access-Accept

2004-07-26 Thread Thor Spruyt
t: Monday, July 26, 2004 4:16 PM Subject: Re: Exec-Program-Wait attributes not included in Access-Accept > On Mon, Jul 26, 2004 at 03:58:37PM +0200, Thor Spruyt wrote: > > I have freeradius 0.9.3 running with Postgresql database backend. > > The only thing the radius checks is the passw

Re: Exec-Program-Wait attributes not included in Access-Accept

2004-07-26 Thread Paul Hampson
On Mon, Jul 26, 2004 at 03:58:37PM +0200, Thor Spruyt wrote: > I have freeradius 0.9.3 running with Postgresql database backend. > The only thing the radius checks is the password and then executes an > external script if authentication is ok. > The section in the users file is: > DEFAULT

Re: Exec-Program environment

2004-07-05 Thread Alan DeKok
Andrea Gabellini <[EMAIL PROTECTED]> wrote: > I need to use Exec-Program, but I need also the Sql-Group variable. > Actually It's not passed to the environment. The request items are added to the environment in Exec-Program-Wait. That can't be changed. if SQL-Group isn't in the request items,

Re: exec-program-wait - scripts are not executing

2004-04-13 Thread mel
Doug Hardie wrote: Are you sure you are looking in the right directory? Since you didn't specify the full path, it uses whatever it has as a working path at that point. It may not be one that is obvious. Try specifying the complete path. Also run it by hand to be sure the permissions are c

Re: exec-program-wait - scripts are not executing

2004-04-13 Thread Doug Hardie
Are you sure you are looking in the right directory? Since you didn't specify the full path, it uses whatever it has as a working path at that point. It may not be one that is obvious. Try specifying the complete path. Also run it by hand to be sure the permissions are correct. On Apr 13,

Re: Exec-Program, and Exec-Program-Wait at the same time?

2004-02-19 Thread Alan DeKok
Karl Pielorz <[EMAIL PROTECTED]> wrote: > If I remove the "Exec-Program-Wait" from the radreply table, then post-auth > get's invoked when the user logs in. > > Are the two mutually exclusive? Yes. You should use rlm_exec instead. Alan DeKok. - List info/subscribe/unsubscribe? See http:/

Re: Exec-Program problem..

2004-01-23 Thread Andrei Loukinykh
Fri, 23 Jan 2004, Alan DeKok писал(а): > Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > > So I started FR as root:daemon and gave the same own's to the program. > > Still the same. > > May be FR changes effective uid/gid for the external program it runs...? > > No. > > Can you say what platf

Re: Exec-Program problem..

2004-01-23 Thread Alan DeKok
Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > So I started FR as root:daemon and gave the same own's to the program. > Still the same. > May be FR changes effective uid/gid for the external program it runs...? No. Can you say what platform you're running on? Alan DeKok. - List info/subs

Re: Exec-Program problem..

2004-01-23 Thread Andrei Loukinykh
Fri, 23 Jan 2004, Albert Miles Enabe писал(а): > In my Linux box, my radiusd starts up as a daemon, so I did this: > > chown daemon:root setexpiredate > > where setexpiredate is an external C program specified in Exec-Program > in radiusd.conf. May be it's stupid, but I tried to run FR as roo

Re: Exec-Program problem..

2004-01-23 Thread Albert Miles Enabe
>Thu, 22 Jan 2004, Alan DeKok ÐÉÓÁÌ(Á): > > > Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > > > I'm trying to get my external program to work ( which is in fact - > > > a billing program for users' accounting) > > > > Which version are you using? If you're not using 0.9.3, upgrade to > > i

Re: Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Thu, 22 Jan 2004, Alan DeKok писал(а): > Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > > I'm trying to get my external program to work ( which is in fact - > > a billing program for users' accounting) > > Which version are you using? If you're not using 0.9.3, upgrade to > it, and then see if

Re: Exec-Program problem..

2004-01-22 Thread Alan DeKok
Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > I'm trying to get my external program to work ( which is in fact - > a billing program for users' accounting) Which version are you using? If you're not using 0.9.3, upgrade to it, and then see if the problem persists. Alan DeKok. - List info/s

Re: Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Thu, 22 Jan 2004, Christian Richter писал(а): > Better should be to let Freeradius access the needed files as nobody. > Other idea is to put the binary in a group, where it can read the files > (chown : ). > To get the user-id simply type " ps -ux " and search for freeradius. Hmmm .. I starte

Re: Exec-Program problem..

2004-01-22 Thread Christian Richter
Andrei Loukinykh wrote: As in default configuration. nobody/nogroup. Seems I need to change it to something with root privileges... to let my program operate in /var/run.. or elsewhere it needs to. Thank you, I'll try ... Best regards, Andy Better should be to let Freeradius access the needed

Re: Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Thu, 22 Jan 2004, Dennis Roos писал(а): > On Thu, 2004-01-22 at 14:25, Andrei Loukinykh wrote: > > > What changes happens with external program execution when FR runs in > > debug mode? > When run in debug mode, AFAIK freeradius doesn't drop root priviliges. > > What user/group does your freer

Re: Exec-Program problem..

2004-01-22 Thread Dennis Roos
On Thu, 2004-01-22 at 14:25, Andrei Loukinykh wrote: > What changes happens with external program execution when FR runs in > debug mode? When run in debug mode, AFAIK freeradius doesn't drop root priviliges. What user/group does your freeradius run as when started without -X -- Regards, Denn

<    1   2