Unix TimeStamp Based Login
Phil Mayers
p.mayers at imperial.ac.uk
Mon May 14 18:26:03 CEST 2012
On 14/05/12 16:42, jomajo wrote:
> Freeradius says TRUE, but REJECTS the user anyway:
>
You need to do some of the work here, and apply some thought to what's
going on. It's not polite to just post every error without doing some
work yourself to determine the problem.
READ the output, and understand the policy you've written.
> expand: %{sql:select start_time from resv where
> username='%{User-Name}'} -> 1337038200
> expand: %{sql:select end_time from resv where
> username='%{User-Name}'} -> 1337020200
You have end time > start time here. This is obviously wrong.
> expand: %l -> 1337010053
> ++[request] returns noop
> ++? if (Resv-Cur-Time< "%{Resv-Start-Time}")
> expand: %{Resv-Start-Time} -> 1337038200
> ? Evaluating (Resv-Cur-Time< "%{Resv-Start-Time}") -> TRUE
Pay attention to this.
Current time is less than start time, therefore the booking slot isn't
open, therefore reject.
More information about the Freeradius-Users
mailing list