Unix TimeStamp Based Login

Phil Mayers p.mayers at imperial.ac.uk
Mon May 14 17:18:12 CEST 2012


On 14/05/12 15:25, jomajo wrote:

> Failed parsing "Resv-Start-Time": Unknown value Resv-Start-Time for
> attribute Resv-Cur-Time

Ah, sorry. I keep forgetting unlang is picky.

You want:

  if (Resv-Cur-Time < "%{Resv-Start-Time}") {
    ..
  }

  if (Resv-Cur-Time > "%{Resv-End-Time}") {
    ..
  }

You need to quote the right-hand side of the expression, otherwise 
FreeRADIUS tries to look it up in the dictionary and can't find it.

(might be handy to have an attribute type that didn't do this)


More information about the Freeradius-Users mailing list