On 10.12.2012 12:49, Arran Cudbard-Bell wrote:
Would it work to update the loginTime using in the update section loginTime := "%{integer:event-time}Z"? What's the "timezone" used by the event-time? local machine time?
RFC says:
5.3. Event-Timestamp
Description
This attribute is included in an Accounting-Request packet to record the time that this event occurred on the NAS, in seconds since January 1, 1970 00:00 UTC.
But it'll probably just be the local time on the NAS.
%{integer:Event-Timestamp} should get you it in original unix timestamp form yes.
Yep I also came across the RFC for the event-timestamp. Problem is that the format of the ldap attribute is YYYYMMDDHHMMSS + a trailing "Z". I guess we don't have time-convertion function in unlang ? :p -- Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mobile: +41 (0)78 619 73 53 Mail: olivier@heliosnet.org