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 <the/path/to/php/script>




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

Reply via email to