Re: [FreeRadius] Help how do I make Expiration

Horas Hajovan Siregar <[email protected]>
Newsgroups gmane.comp.freeradius.user
Message-ID <[email protected]>
Hello @Alan DeKok

I mean
If we use the Expiration attribute in FreeRADIUS, the format is an 
absolute date and time, for example:
'23 Aug 2025 22:30:00'
The problem: This expiration cannot be calculated automatically per 
login. If you set it directly in radcheck, the user will expire at a 
specific time, not relative to the first login.

Is there a way to automatically expire a user within the next day upon 
first login, and the user cannot be reused after 1 day?

On 2025-08-20 20:31, Horas Hajovan Siregar wrote:
> Hello, I'm having a problem creating a user that, when logged in, will
> not be able to be used again for 1 hour after logging in.
> 
> I tried using session-timeout, but I can still log in for the next
> hour. I was hoping to prevent logging in again after 1 hour.
> 
> I found sources from several articles using the Expiration attribute,
> 
> but I'm having a problem where it doesn't count as 1 hour after
> logging in.
> 
> Please help.
> 
> I use freeradius
> 
> root@rad:~# freeradius -X
> FreeRADIUS Version 3.0.26
> Copyright (C) 1999-2021 The FreeRADIUS server project and contributors
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.