Expiration AVP Value Format

Alan DeKok aland at deployingradius.com
Tue Jan 1 22:21:29 CET 2019


On Dec 31, 2018, at 2:15 PM, Ali Arslan via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> I am using freeradius 3.x with mysql, and want to set expiraton date for some users in radcheck table as
> 
> attribute = "Expiration",
> op = "==",
> value = endDate
> 
> What should be the format of the "endDate" string here?

  A Unix timestamp as a 32-bit integer also works.  Or, a simple date string:

   "2019 Jan 1 01:01:00"

  The parser is pretty flexible.  It's clear that "Jan" isn't a year or day or hour.  It's clear that "2019" isn't a month of hour/minute.  And it's clear that "01:01:00" isn't a month or a year.

  Alan DeKok.




More information about the Freeradius-Users mailing list