Re: Exec-Program doesn't execute the program
Thanks Kostas million times!!! It works now:) Edgars Kostas Zorbadelos wrote: On Mon, Sep 06, 2004 at 04:25:48PM +0300, Edgars wrote: got it to work:)i was putting this attribute in the radcheck table not radreply. Ok, so you were using an sql db backend... But now another problem is rising up - the only reason why i want to use this attribute is that i wanted to add a Session-Timeout attribute to radreply table and that this timeout should be given to the user in the current authentication try. But the php script is only adding the timeout but it will be given to user only at the next login. How to workaround this? Should i use rlm_sql instead of exec-program attribute? Edgars So you don't need to store it in radreply table. Your external script will enrich the attributes returned to the client by adding the Session-Timeout. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
On Mon, Sep 06, 2004 at 04:25:48PM +0300, Edgars wrote: > got it to work:)i was putting this attribute in the radcheck table not > radreply. Ok, so you were using an sql db backend... But now another problem is rising up - the only reason why i > want to use this attribute is that i wanted to add a Session-Timeout > attribute to radreply table and that this timeout should be given to > the user in the current authentication try. But the php script is only > adding the timeout but it will be given to user only at the next login. > How to workaround this? Should i use rlm_sql instead of exec-program > attribute? > > Edgars > So you don't need to store it in radreply table. Your external script will enrich the attributes returned to the client by adding the Session-Timeout. -- Kostas Zorbadelos Systems Developer, Otenet SA mailto: [EMAIL PROTECTED] Out there in the darkness, out there in the night out there in the starlight, one soul burns brighter than a thousand suns. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
got it to work:)i was putting this attribute in the radcheck table not radreply. But now another problem is rising up - the only reason why i want to use this attribute is that i wanted to add a Session-Timeout attribute to radreply table and that this timeout should be given to the user in the current authentication try. But the php script is only adding the timeout but it will be given to user only at the next login. How to workaround this? Should i use rlm_sql instead of exec-program attribute? Edgars Edgars wrote: nope, the same. Edgars Kostas Zorbadelos wrote: On Mon, Sep 06, 2004 at 03:12:47PM +0300, Edgars wrote: with permissions there are no problems, i tried also your chmod options. The same:/ Maybe something else? Edgars Perhaps you should create an executable wrapper shell script containing the call to your php script like StartPhp.sh #!/bin/sh php -f Kostas Zorbadelos wrote: On Mon, Sep 06, 2004 at 02:27:29PM +0300, Edgars wrote: Hello, in some way this attribute does not execute my PHP program. I have data base insert query in this file to test all this. If i execute the *.php program from command line, everything is OK - a new field is added in the DB. I've put this attribute with path in the radcheck table. Where could be the problem? Can't tell anything from the debugging mode.. Edgars - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Is your script executable from the user who owns radiusd? A chmod 755 would be appropriate then. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
On Mon, Sep 06, 2004 at 04:00:43PM +0300, Edgars wrote: What is the debugging output of radiusd -X? > nope, the same. > > Edgars > > Kostas Zorbadelos wrote: > > >On Mon, Sep 06, 2004 at 03:12:47PM +0300, Edgars wrote: > > > > > >>with permissions there are no problems, i tried also your chmod options. > >>The same:/ > >>Maybe something else? > >> > >>Edgars > >> > >> > >> > > > >Perhaps you should create an executable wrapper shell script > >containing the call to your php script like > > > >StartPhp.sh > > > >#!/bin/sh > > > >php -f > > > > > > > > > >>Kostas Zorbadelos wrote: > >> > >> > >> > >>>On Mon, Sep 06, 2004 at 02:27:29PM +0300, Edgars wrote: > >>> > >>> > >>> > >>> > Hello, > > in some way this attribute does not execute my PHP program. I have data > base insert query in this file to test all this. If i execute the *.php > program from command line, everything is OK - a new field is added in > the DB. I've put this attribute with path in the radcheck table. > > Where could be the problem? Can't tell anything from the debugging > mode.. > > Edgars > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > > > > > > >>>Is your script executable from the user who owns radiusd? > >>>A chmod 755 would be appropriate then. > >>> > >>> > >>> > >>> > >>> > >>> > >>- > >>List info/subscribe/unsubscribe? See > >>http://www.freeradius.org/list/users.html > >> > >> > >> > > > > > > > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > -- Kostas Zorbadelos Systems Developer, Otenet SA mailto: [EMAIL PROTECTED] Out there in the darkness, out there in the night out there in the starlight, one soul burns brighter than a thousand suns. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
nope, the same. Edgars Kostas Zorbadelos wrote: On Mon, Sep 06, 2004 at 03:12:47PM +0300, Edgars wrote: with permissions there are no problems, i tried also your chmod options. The same:/ Maybe something else? Edgars Perhaps you should create an executable wrapper shell script containing the call to your php script like StartPhp.sh #!/bin/sh php -f Kostas Zorbadelos wrote: On Mon, Sep 06, 2004 at 02:27:29PM +0300, Edgars wrote: Hello, in some way this attribute does not execute my PHP program. I have data base insert query in this file to test all this. If i execute the *.php program from command line, everything is OK - a new field is added in the DB. I've put this attribute with path in the radcheck table. Where could be the problem? Can't tell anything from the debugging mode.. Edgars - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Is your script executable from the user who owns radiusd? A chmod 755 would be appropriate then. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
On Mon, Sep 06, 2004 at 03:12:47PM +0300, Edgars wrote: > with permissions there are no problems, i tried also your chmod options. > The same:/ > Maybe something else? > > Edgars > Perhaps you should create an executable wrapper shell script containing the call to your php script like StartPhp.sh #!/bin/sh php -f > Kostas Zorbadelos wrote: > > >On Mon, Sep 06, 2004 at 02:27:29PM +0300, Edgars wrote: > > > > > >>Hello, > >> > >>in some way this attribute does not execute my PHP program. I have data > >>base insert query in this file to test all this. If i execute the *.php > >>program from command line, everything is OK - a new field is added in > >>the DB. I've put this attribute with path in the radcheck table. > >> > >>Where could be the problem? Can't tell anything from the debugging mode.. > >> > >>Edgars > >> > >>- > >>List info/subscribe/unsubscribe? See > >>http://www.freeradius.org/list/users.html > >> > >> > >> > > > >Is your script executable from the user who owns radiusd? > >A chmod 755 would be appropriate then. > > > > > > > > > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > -- Kostas Zorbadelos Systems Developer, Otenet SA mailto: [EMAIL PROTECTED] Out there in the darkness, out there in the night out there in the starlight, one soul burns brighter than a thousand suns. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
with permissions there are no problems, i tried also your chmod options. The same:/ Maybe something else? Edgars Kostas Zorbadelos wrote: On Mon, Sep 06, 2004 at 02:27:29PM +0300, Edgars wrote: Hello, in some way this attribute does not execute my PHP program. I have data base insert query in this file to test all this. If i execute the *.php program from command line, everything is OK - a new field is added in the DB. I've put this attribute with path in the radcheck table. Where could be the problem? Can't tell anything from the debugging mode.. Edgars - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Is your script executable from the user who owns radiusd? A chmod 755 would be appropriate then. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Exec-Program doesn't execute the program
On Mon, Sep 06, 2004 at 02:27:29PM +0300, Edgars wrote: > Hello, > > in some way this attribute does not execute my PHP program. I have data > base insert query in this file to test all this. If i execute the *.php > program from command line, everything is OK - a new field is added in > the DB. I've put this attribute with path in the radcheck table. > > Where could be the problem? Can't tell anything from the debugging mode.. > > Edgars > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > Is your script executable from the user who owns radiusd? A chmod 755 would be appropriate then. -- Kostas Zorbadelos Systems Developer, Otenet SA mailto: [EMAIL PROTECTED] Out there in the darkness, out there in the night out there in the starlight, one soul burns brighter than a thousand suns. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Exec-Program doesn't execute the program
Hello, in some way this attribute does not execute my PHP program. I have data base insert query in this file to test all this. If i execute the *.php program from command line, everything is OK - a new field is added in the DB. I've put this attribute with path in the radcheck table. Where could be the problem? Can't tell anything from the debugging mode.. Edgars - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html