freeradius and the current date

Graham Leggett minfrin at sharp.fm
Thu Mar 5 16:30:00 CET 2015


On 05 Mar 2015, at 5:25 PM, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:

> Call rlm_preprocess which will give you Event-Timestamp.
> 
> #
> #  Create or parse an ASN1 generalized time stamp
> #
> #  Note: Not as flexible as it should be due to fixed strftime format
> #
> #  Should be able to deal with fractional seconds and lack of timezone.
> #
> date generalized_time {
> 	format = "%Y%m%d%H%M%S%z"
> }
> 
> (&(uid=%{User-Name})(myExpiryTimestamp>=%{generalized_time:&Event-Timestamp}))
> 
> the rlm_date and Event-Timestamp combo replace the one letter expansions.

Thanks for confirming this.

Does Event-Timestamp represent the date on the radius server itself, or the date as provided by the NAS in the request?

Regards,
Graham
—




More information about the Freeradius-Users mailing list