so, for now i have solvd my problem:
add a new attribute in dictionary:
ATTRIBUTEActivate-Account-At3080integer
this will filled with the unix-timestamp for activating time. and here
are the unlang code:
authorize {
...
if(%l %{check:Activate-Account-At}) {
Am 17.09.2012 03:27, schrieb Fajar A. Nugraha:
Did you read the post?
Resv-Start-Time and others in that example are custom (i.e. made up)
attributes that you put on radcheck/radgroupcheck (there's no such
thing as radius attributes table, btw).
The comparing is done by unlang because there's
Am 18.09.2012 23:38, schrieb Franks Andy (RLZ) IT Systems Engineer:
unlang time / date comparison
I'd like to be able to take a date/time from a sql database,use unlang
(not a module) tocompare it to the current time and make a decision
based on the fact that it's, for example,less or more
Am 16.09.2012 23:56, schrieb Fajar A. Nugraha:
Something like
http://freeradius.1045715.n5.nabble.com/Unix-TimeStamp-Based-Login-td5708187.html#a5708934?
not realy, i want to use the radius attributes table, so i didnt find
a module that can handle this comparing.
any other ideas ?
-
List
4 matches
Mail list logo