<div dir="ltr"><font face="courier new, monospace">Greetings Everyone, My goal is to use only ONE "A" (Authorization Only) as starting of FR implementation. i do have different system to authenticate users. Plan is to replace that with FR but one step at a time. </font><div>
<font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">i tried with the following virtual server to accept everyone. With that done, Everyone is accepted, regardless of user exists in MySQL_DB or not. And replay message is sent correctly as well. </font><div>
<font face="courier new, monospace"><br></font></div><div style><font face="courier new, monospace"><b>Check Items in unlang code:</b> </font></div><div style><font face="courier new, monospace">1.) Login time is verified correctly - if users attempts to access outside of time slot, then rejected, else accepted. (First Attribute Works)</font></div>
<div style><font face="courier new, monospace">2.) Everyone is accepted </font><span style="font-family:'courier new',monospace">(Second </span><span style="font-family:'courier new',monospace">Attribute</span><span style="font-family:'courier new',monospace"> also Works)</span></div>
<div style><span style="font-family:'courier new',monospace">3.) Users are not disconnected after 10 minutes (Third </span><span style="font-family:'courier new',monospace">Attribute</span><span style="font-family:'courier new',monospace"> do not work)</span></div>
<div style><span style="font-family:'courier new',monospace"><br></span></div><div style><span style="font-family:'courier new',monospace"><b>Reply Items </b></span><b style="font-family:'courier new',monospace">in unlang code</b><b style="font-family:'courier new',monospace">: </b></div>
<div style><span style="font-family:'courier new',monospace"><br></span></div><div><font face="courier new, monospace">1.) Users are successfully redirected to the URL specified for "</font><span style="font-family:'courier new',monospace">WISPr-Redirection-URL</span><span style="font-family:'courier new',monospace">" (First Reply Item Works)</span></div>
<div><span style="font-family:'courier new',monospace">2.) </span><span style="font-family:'courier new',monospace">Users are not disconnected after 10 minutes (Second </span><span style="font-family:'courier new',monospace">Attribute</span><span style="font-family:'courier new',monospace"> do not work)</span></div>
<div><span style="font-family:'courier new',monospace"><br></span></div><div><span style="font-family:'courier new',monospace;color:rgb(166,77,121)">server accept_everyone {</span><br></div><div><div><font face="courier new, monospace" color="#a64d79"> authorize {</font></div>
<div><font face="courier new, monospace" color="#a64d79"><br></font></div><div><font face="courier new, monospace" color="#a64d79"># If user not present in MySQL Database still allow them access</font></div><div><font face="courier new, monospace" color="#a64d79"># Only Between 10:00 and 12:59PM</font></div>
<div><font color="#a64d79"><font face="courier new, monospace"># File Module Retunes "noop" & sql Module Returns "notfound"</font><br></font></div><div><font face="courier new, monospace" color="#a64d79"><br>
</font></div><div><font face="courier new, monospace" color="#a64d79">#files</font></div><div><font face="courier new, monospace" color="#a64d79"> #if(noop) {</font></div><div><font face="courier new, monospace" color="#a64d79"><br>
</font></div><div><font face="courier new, monospace" color="#a64d79">sql</font></div><div><font face="courier new, monospace" color="#a64d79"><br></font></div><div><font face="courier new, monospace" color="#a64d79"> if(notfound) {</font></div>
<div><font face="courier new, monospace" color="#a64d79"> update control {</font></div><div><font face="courier new, monospace" color="#a64d79"> Login-Time := 'Any1000-1259'</font></div>
<div><font face="courier new, monospace" color="#a64d79"> Auth-Type := "Accept"</font></div><div><font face="courier new, monospace" color="#a64d79"> Max-All-Session := "600"</font></div>
<div><span style="color:rgb(166,77,121);font-family:'courier new',monospace">}</span><br></div><div><font face="courier new, monospace" color="#a64d79"> }</font></div><div><span style="color:rgb(166,77,121);font-family:'courier new',monospace"># Redirect Everyone To Yale Website</span><br>
</div><div><font face="courier new, monospace" color="#a64d79"> update reply {</font></div><div><font face="courier new, monospace" color="#a64d79"> WISPr-Redirection-URL := "<a href="http://www.yale.edu">http://www.yale.edu</a>"</font></div>
<div><font face="courier new, monospace" color="#a64d79"> Max-All-Session := "600"</font></div><div><font face="courier new, monospace" color="#a64d79"> }</font></div><div><font face="courier new, monospace" color="#a64d79"><br>
</font></div><div><font face="courier new, monospace" color="#a64d79">}</font></div><div><font face="courier new, monospace" color="#a64d79"> authenticate {</font></div><div><font face="courier new, monospace" color="#a64d79"> Auth-Type PAP {</font></div>
<div><font face="courier new, monospace" color="#a64d79">pap</font></div><div><font face="courier new, monospace" color="#a64d79"><br></font></div><div><font face="courier new, monospace" color="#a64d79">}</font></div><div>
<font face="courier new, monospace" color="#a64d79"> }</font></div><div><font face="courier new, monospace" color="#a64d79"> }</font></div><div><span style="color:rgb(166,77,121);font-family:'courier new',monospace">pap</span><br>
</div><div><span style="font-family:'courier new',monospace"><font color="#a64d79">logintime</font></span></div><div><span style="font-family:'courier new',monospace;color:rgb(166,77,121)">forevertimecounter </span><br>
</div><div><font face="courier new, monospace"><br></font></div><div><span style="font-family:'courier new',monospace">## Authorization Area ENDs Here</span><br></div><div><font face="courier new, monospace"><br></font></div>
<div><font face="courier new, monospace"><br></font></div><div style><font face="courier new, monospace">Can someone give little hint ? Only hint would be enough, i will study the rest. is it even posible to control that (</font><span style="color:rgb(166,77,121);font-family:'courier new',monospace">Max-All-Session</span><span style="font-family:'courier new',monospace">) using "unlang" code ?</span></div>
<div style><span style="font-family:'courier new',monospace"><br></span></div><div style><span style="font-family:'courier new',monospace">Thanks / Regards</span></div><div style><span style="font-family:'courier new',monospace">--RM </span></div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 4:17 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">Russell Mike wrote:<br>
> Hi John & Alan, Kindly clarify<br>
<br>
</div> This isn't a private list. Messages should NOT be addressed to<br>
individual people.<br>
<br>
Just reply to a message. It's simpler, and more polite.<br>
<div class="im"><br>
> Does this means, it is posible to use only authorize function of FR and<br>
> process all authentication requests with following virtual server?<br>
<br>
</div> Did you try it? What does it do?<br>
<div class=""><div class="h5"><br>
Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div></div></div></div></div>