<div dir="ltr">acctuniqueid is not unique in default configuration. according to my experience, problem with duplicated session is very strange. My NAS (Mtik 2.9.x and Mtik 3.x) sends duplicated session ids but almost in the same time. For example one session is started now and the second one is transfered 1 second later. <br>
<br><div class="gmail_quote">On Tue, Oct 7, 2008 at 8:54 AM, Santiago Balaguer García <span dir="ltr"><<a href="mailto:santiagoawa@hotmail.com">santiagoawa@hotmail.com</a>></span> 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>I have a script to delete duplicate entries and stale session. But the duplicate accounting records were created in real time, I have to create a trigger in the database to detect these entries or activate a exec in accounting module.<br>

 <br>
Is the 'acctuniqueid'  attribute unique in all database in a default freeradius configuration?<br><br><br><br><br>

<hr>
<br>
Date: Mon, 6 Oct 2008 17:53:32 +0200<br>From: <a href="mailto:mangia81@gmail.com" target="_blank">mangia81@gmail.com</a><br>To: <a href="mailto:freeradius-users@lists.freeradius.org" target="_blank">freeradius-users@lists.freeradius.org</a><br>
Subject: Re: Primary key in radacct table<div><div></div><div class="Wj3C7c"><br><br><br>
<div dir="ltr">You can do it and it will solve your problem but it can create small overhead because radius tries to write into database and it will be rejected. you will see this in your log files.<br><br>Another idea is to change NAS or you can create cron script to delete duplicated entries. <br>
<br>MT<br><br>
<div>On Mon, Oct 6, 2008 at 5:35 PM, Santiago Balaguer García <span dir="ltr"><<a href="mailto:santiagoawa@hotmail.com" target="_blank">santiagoawa@hotmail.com</a>></span> wrote:<br>
<blockquote style="padding-left: 1ex;">
<div>Hi,<br> <br>   I am using a freeradius 1.1.7 + postgres since 3 years ago. The AAA service works fine, however my radacct table has sonetimes duplicate registers. <br>I realize that it happens when a NAS does not have a realiable Internet conection, so NAS send the accounting packets several times.<br>
 <br>  My radacct table has 'radacctid' as primary key. I realize that two (or more) duplicate registers share  'acctsessionid' and 'acctuniqueid' fields amog others.<br>I know  'acctsessionid' field can be the same in diferent NASes.<br>
Would be a good idea change the primery key by 'acctuniqueid' ? <br> <br>     Santiago<br><br>
<hr>
La cartera, las gafas. ¿te falta algo? <a href="http://www.vivelive.com/abecedario" target="_blank">Ahora llévate Messenger en tu móvil</a></div><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></div><br></div></div><div class="WgoR0d"><hr>Ahora llévate lo mejor de MSN y Windows Live,  <a href="http://serviciosmoviles.es.msn.com/" target="_blank">en tu móvil</a></div></div>
<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></div>