Hi all,<br>
<br>
I finally found out how to launch a script after authentication:<br>
<br>
I have first created a module <br>
<br>
exec modatt {<br>
        wait = yes<br>
        program = "/home/raduser/test.php %{User-Name} "<br>
        input_pairs = request<br>
        output_pairs = reply<br>
}<br>
<br>and then I have added it in <span style="font-weight: bold;">instantiate</span> and <span style="font-weight: bold;">authorize</span> section<br>
here is the php script (test.php):<br>
#!/usr/bin/php<br>
<?php<br>
$argv = $_SERVER['argv'];    <br>
if ( $argv[1] == "toto")<br>
    echo "Session-Timeout:=100";<br>
else<br>
    echo "Session-Timeout:=50";<br>
<br>
?><br>
<br>
But I still have a problem: the session-timeout attribute is not sent to the NAS.<br>
The debug output is hereunder:<br>
Tue Sep  4 17:26:57 2007 : Debug: Exec-Program output:  Session-Timeout:=100<br>
Tue Sep  4 17:26:57 2007 : Debug: Exec-Program-Wait: value-pairs: <span style="font-weight: bold;">,Session-Timeout</span>:=100<br>
Tue Sep  4 17:26:57 2007 : Error: Exec-Program-Wait: /home/raduser/test.php %{User-Name} : unparsable reply<br>
Tue Sep  4 17:26:57 2007 : Debug: Exec-Program: returned: 0<br>
<br>
But I really don't know why because I execute a sh script  (instead of a php script), it works very well!!<br>
<br>
here is my sh script (test.sh):<br>
#!/bin/sh<br>
if [ $1 == "toto" ]; then<br>
    echo  "Session-Timeout:=100"<br>
else<br>
    echo  "Session-Timeout:=53"<br>
fi<br>
<br>
debug trace:<br>
Tue Sep  4 17:58:00 2007 : Debug: Exec-Program output: Session-Timeout:=100 <br>
Tue Sep  4 17:58:00 2007 : Debug: Exec-Program-Wait: value-pairs: Session-Timeout:=100<br>
Tue Sep  4 17:58:00 2007 : Debug: Exec-Program: returned: 0<br>
<br>
<br>
I don't see any difference between the scripts (except one is working and the other one not)....<br>
Please, advise me...<br>
<br>
<br>
Many Thanks<br>