<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes I need all of them.<div>Is it a problem?</div><div><br><div><div>Le 09-06-29 à 16:31, Guillaume Brenaut a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div>after looking for a solution in different forums and on this mailing list without any success I decide to post my problem here.</div><div>I'm having trouble to get the good Session-Timeout at the first request.</div><div>Example: one user with <span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Max-All-Session:=900 try to connect:</span></div><div><font class="Apple-style-span" face="sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br></span></font></div><div><font class="Apple-style-span" face="sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><div><i>root@server:~# radtest jalmjdm nqbnmwcp 127.0.0.1 1812 secret</i></div><div><i>Sending Access-Request of id 197 to 127.0.0.1 port 1812</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>User-Name = "jalmjdm"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>User-Password = "nqbnmwcp"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>NAS-IP-Address = 127.0.1.1</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>NAS-Port = 1812</i></div><div><i>rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=197, length=78</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>WISPr-Redirection-URL = "<a href="http://www.google.ca/">http://www.google.ca</a>"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>WISPr-Bandwidth-Max-Up = 128000</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>WISPr-Bandwidth-Max-Down = 512000</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i><b>Session-Timeout = 2537321</b></i></div><div><i><br></i></div><div>But the next request give the good answer:</div><div><div><i>root@server:~# radtest jalmjdm nqbnmwcp 127.0.0.1 1812 secret</i></div><div><i>Sending Access-Request of id 174 to 127.0.0.1 port 1812</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>User-Name = "jalmjdm"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>User-Password = "nqbnmwcp"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>NAS-IP-Address = 127.0.1.1</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>NAS-Port = 1812</i></div><div><i>rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=174, length=78</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>WISPr-Redirection-URL = "<a href="http://www.google.ca/">http://www.google.ca</a>"</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>WISPr-Bandwidth-Max-Up = 128000</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i>WISPr-Bandwidth-Max-Down = 512000</i></div><div><span class="Apple-tab-span" style="white-space: pre; "><i> </i></span><i><b>Session-Timeout = 886</b></i></div><br></div><div>I heard about a conflict problem with authorize parameters but I haven't figured out how to fix it. Here is my config:</div><div><div><div><br></div><div>sqlcounter noresetcounter {</div><div> counter-name = Max-All-Session-Time</div><div> check-name = "Max-All-Session"</div><div> sqlmod-inst = sql</div><div> key = User-Name</div><div> reset = never</div><div> query = "SELECT SUM(AcctSessionTime) FROM radacct WHERE UserName='%{%k}'"</div><div>}</div><div><br></div></div><div>#############AUHTORIZE SECTION####################</div><div>instantiate {</div><div> #</div><div> # Allows the execution of external scripts.</div><div> # The entire command line (and output) must fit into 253 bytes.</div><div> #</div><div> # e.g. Framed-Pool = `%{exec:/bin/echo foo}`</div><div> exec</div><div> #</div><div> #</div><div> # The expression module doesn't do authorization,</div><div> # authentication, or accounting. It only does dynamic</div><div> # translation, of the form:</div><div> #</div><div> # Session-Timeout = `%{expr:2 + 3}`</div><div><br></div><div> # So the module needs to be instantiated, but CANNOT be</div><div> # listed in any other section. See 'doc/rlm_expr' for</div><div> expr</div><div> noresetcounter</div><div> expiration</div><div> logintime</div><div>}</div><div><br></div><div>authorize {</div><div> preprocess</div><div> suffix</div><div> chap</div><div> mschap</div><div> sql</div><div><div> files</div><div> noresetcounter</div><div> hourlycounter</div><div> dailycounter</div><div> monthlycounter</div><div> weeklycounter</div><div> yearlycounter</div><div><br></div><div> totaloctetyearlycounter</div><div> totaloctetmonthlycounter</div><div> totaloctethourlycounter</div><div> totaloctetdaylycounter</div><div><br></div><div> outputyearlycounter</div><div> outputmonthlycounter</div><div> outputhourlycounter</div><div> outputdaylycounter</div><div><br></div><div> inputyearlycounter</div><div> inputmonthlycounter</div><div> inputhourlycounter</div><div> inputdaylycounter</div><div>}</div><div>Thanks for your help</div></div></div></span></font></div></div></blockquote></div><br></div></body></html>