logintime attribute - most specific time
Hello. I found an old example here how to set logintime attributes , http://www.gnu.org/software/radius/manual/html_node/radius_236.html . But maybe you know how to set logintime for the specific day of month / month / year ? Etc. this attribute says that user can login at this time : 2012/04/17/1700-1800 Thank you for the information! -- View this message in context: http://freeradius.1045715.n5.nabble.com/logintime-attribute-most-specific-ti... Sent from the FreeRadius - User mailing list archive at Nabble.com.
jomajo wrote:
I found an old example here how to set logintime attributes , http://www.gnu.org/software/radius/manual/html_node/radius_236.html .
That's for another RADIUS server.
But maybe you know how to set logintime for the specific day of month / month / year ?
doc/README ? This is documented. Alan DeKok.
On Tue, Apr 17, 2012 at 1:33 PM, Alan DeKok <aland@deployingradius.com> wrote:
jomajo wrote:
I found an old example here how to set logintime attributes , http://www.gnu.org/software/radius/manual/html_node/radius_236.html .
That's for another RADIUS server.
But maybe you know how to set logintime for the specific day of month / month / year ?
doc/README ?
This is documented.
I think what jomajo means, is that after reading the link (which has similar content as doc/README w.r.t. Login-Time time string format), is that there's an example to specify a day name, week-day, or any day, but there's no example for a specific date. Is it correct to assume that what he wants (i.e. 2012/04/17/1700-1800) is not possible using Login-Time? -- Fajar
Fajar A. Nugraha wrote:
I think what jomajo means, is that after reading the link (which has similar content as doc/README w.r.t. Login-Time time string format), is that there's an example to specify a day name, week-day, or any day, but there's no example for a specific date.
Because it doesn't work.
Is it correct to assume that what he wants (i.e. 2012/04/17/1700-1800) is not possible using Login-Time?
It's not. Login-Time is for time of day restrictions. Current-Time is for date-based restrictions. He can write "unlang" rules to compare dates manually. Alan DeKok.
On Tue, Apr 17, 2012 at 1:59 PM, Alan DeKok <aland@deployingradius.com> wrote:
Fajar A. Nugraha wrote:
I think what jomajo means, is that after reading the link (which has similar content as doc/README w.r.t. Login-Time time string format), is that there's an example to specify a day name, week-day, or any day, but there's no example for a specific date.
Because it doesn't work.
Is it correct to assume that what he wants (i.e. 2012/04/17/1700-1800) is not possible using Login-Time?
It's not. Login-Time is for time of day restrictions. Current-Time is for date-based restrictions.
He can write "unlang" rules to compare dates manually.
Thanks for the explanation. -- Fajar
Hello Alan. Few weeks ago simple authentication with "login-time" attributes was working. Now I wan't to use just few tables in my MySQL radius database. These tables: http://freeradius.1045715.n5.nabble.com/file/n5693637/1.png http://freeradius.1045715.n5.nabble.com/file/n5693637/2.png But there is a problem, my Radius server doesn't look at "login-time" attribute."Login-Time" is enabled in Authorization section also in the instantiate section. User authenticates successfully at any time! ++[checkval] returns notfound ? ++[expiration] returns noop ? ++[logintime] returns noop ? Could you please take a look ? Freeradius - X : http://www.text-upload.com/read.php?id=362100&c=5808807 Freeradius -X , when user tries to log in: http://www.text-upload.com/read.php?id=362102&c=9548423 -- View this message in context: http://freeradius.1045715.n5.nabble.com/logintime-attribute-most-specific-ti... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Thanks Alan! You are correct. But maybe do you know or someone else too, can I use just "Unix timestamp" format, without freeradius current-time /login-time attributes? If I put in the radcheck table my own columns , start_time , end_time , username and password. Is this possible for freeradius to understand and authenticate at this specific time slot? Maybe someone already tried simillar solution? -- View this message in context: http://freeradius.1045715.n5.nabble.com/logintime-attribute-most-specific-ti... Sent from the FreeRadius - User mailing list archive at Nabble.com.
It is documented... - I hope so! But I created this thread just because I can't found this information in freeradius documentation! -- View this message in context: http://freeradius.1045715.n5.nabble.com/logintime-attribute-most-specific-ti... Sent from the FreeRadius - User mailing list archive at Nabble.com.
participants (4)
-
alan buxey -
Alan DeKok -
Fajar A. Nugraha -
jomajo