Radius acctstarttime
    Oscar Jofre 
    oscar at jofre.com
       
    Sun Mar 25 00:34:38 CET 2018
    
    
  
Thanks Alan,
 
So just for clarify:
 
  So if both the NAS and FreeRADIUS use NTP for the correct time, they should have the same time.
 
In Taiwan’s NAS I have NTP and the NAS clock is 2018-03-25 07:29:16 am
 
 
 
And when a write on radius comes from that router it saves as 2018-03-25 00:29:16 am ... the time from the centos where is installed freeradius.
 
So if the NAS have an incorrect time (could not sync with NTP) will save an incorrect time on raddact ?
 
 
Thanks,
 
 
-----Mensaje original-----
De: Freeradius-Users <freeradius-users-bounces+oscar=jofre.com at lists.freeradius.org> En nombre de Alan DeKok
Enviado el: domingo, 25 de marzo de 2018 0:13
Para: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Asunto: Re: Radius acctstarttime
 
On Mar 24, 2018, at 7:06 PM, Oscar Jofre < <mailto:oscar at jofre.com> oscar at jofre.com> wrote:
> I thought that acctstarttime was set according the date time from the 
> system where is installed freeradius (centos + mariadb for me)
 
  No.  Acct-Start-Time is sent by the NAS.  FreeRADIUS just writes it in the DB.
 
> But I've seen today some rows from today (according radacctid) with a 
> different time stamp (1970-04-13):
 
  Because the time on the NAS is wrong.
 
> I had an incorrect date on the mikrotik from the example, just the 
> same date that is on the database,
 
  Exactly.
 
> so then I thought that the acctstartime comes from router clock.
 
  It comes from the NAS.
 
> but the routers I have In Taiwan with Taiwan clock don't save on 
> accstarttime the router clock, they still saving data according the 
> system where I have installed freeradius.
 
  The NAS sends the time to FreeRADIUS as a 32-bit number.  NOT as a printable string.  And there's no time zone information.  FreeRADIUS takes this time, converts it to a string, and writes it to the DB.
 
  So if both the NAS and FreeRADIUS use NTP for the correct time, they should have the same time.
 
  Alan DeKok.
 
 
-
List info/subscribe/unsubscribe? See  <http://www.freeradius.org/list/users.html> http://www.freeradius.org/list/users.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9089 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20180325/256b60e5/attachment.png>
    
    
More information about the Freeradius-Users
mailing list