Well how many times per day do you add nases? <br><br><div class="gmail_quote">On Jan 23, 2008 10:20 AM, liran tal <<a href="mailto:liransgarage@gmail.com">liransgarage@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hey Alan,<div class="Ih2E3d"><br><br><div class="gmail_quote">On Jan 23, 2008 9:47 AM, Alan DeKok <<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>liran tal wrote:<br>> Maybe freeradius can read the nas list from sql at startup to some<br>> linked list and this list will be updated every given interval with a query<br>> to the database.<br>
<br></div> It's more complicated than that. The NASes need to be deleted, too.<br>And this has to be done without affecting normal server operation.<br><br> As always, patches are welcome.<br></blockquote></div><br>
</div>
Well, every given interval a query will run on the database server to get the <br>list of nases and it will build a new linked list based on that and delete<br>the other nodes and free the pointers of those.<br><br>I guess that coming up with a method to check against each nas if it's
<br>there or not, and to remove or add it based on a check is do-able<br>but would probably face some efficiency issues where-as I think it<br>would be proper to create a new linked list with whatever nases that<br>query returns and free the previous linked list from memory.
<br><br>I haven't had a look at the relevant code but it seems quite basic<br>to implement unless I'm over-seeing some critical aspects :-)<br><br>I'll be glad to take a look if you can refer me to the current piece
<br>of code where freeradius handles the nas lists read from the database<br>and stores them.<br><br><br>Regards,<br><font color="#888888">Liran Tal.<br>
</font><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></blockquote></div><br>