radacctstarttime and radacctstoptime is supposed to get the time from the nas?
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Thu May 25 00:38:09 CEST 2017
> On May 24, 2017, at 5:44 PM, Diorges Rocha - Radionet Telecom <diorges at radionet.net.br> wrote:
>
> My NAS has no internet access and I cant use the NTP to get a the correct
> time.
Don't be lazy. Setup an NTP server on the management network. Heck run it on the RADIUS server itself.
> Can I change the radacct to get the time from mysql instead of the nas?
If you're still intent on being a terrible sysadmin:
preacct {
...
update request {
Event-Timestamp := "%T"
}
...
}
- to overwrite the timestamp in the request.
It's a bad idea if you care about accurate timestamps, because when the packet is processed != when the event happened.
-Arran
Arran Cudbard-Bell
FreeRADIUS Core Developer
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20170524/1f61d9dd/attachment.sig>
More information about the Freeradius-Users
mailing list