so, for now i have solvd my problem:

add a new attribute in dictionary:

ATTRIBUTE    Activate-Account-At        3080    integer

this will filled with the unix-timestamp for activating time. and here are the "unlang" code:

authorize {
  ...
    if("%l" && "%{check:Activate-Account-At}") {
        if("%l" < "%{check:Activate-Account-At}") {
            reject
        }
    }
  ...
}

this will effect to reject, if the current time lower than the "Activate-Account-At". i have to prefix with "check:" to get the right value from my sql-modul by the "authorize_check_query". i hope this will help some other FR hacker ;)

greez & thx,
  sky...
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to