Hi, Thanks for the response.
I only want to run the SQL query if the user's account is already expired. Wouldn't I need to put it in here?
expiration {
#
# The Reply-Message which will be sent back in case the
# account has expired. Dynamic substitution is supported
#
reply-message = "Password Has Expired\r\n"
# ****** DELETE THE RADREPLY ENTRIES **********
#reply-message = "Your account has expired, %{User-Name}\r\n"
}
2013/6/4 Ethan Hayon <ehayon@gmail.com>:
>You can do with unlang. Put the following in the authorize section,
> Should I be doing this with unlang? I was thinking of using unlang to delete
> all of the associated radreply entries in modules/expiration.
>
> Has anyone experienced this problem before, and what solution do you think
> is best?
>
before "sql":
if(User-Name){
"%{sql:UPDATE radreply SET zzzz WHERE yyyy}"
}
--
Roney Eduardo
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html