Re: User in multiple groups with different login time
Can you give an example of script? Also how should the script be invoked? Thanks, Pramada
I am trying to assign one user to multiple groups and each group has a different login time. Is it possible to check the user against each group's login time and allow access if anyone of them matches.
No. Login-Time can't be used like that. You will have to write a script that checks if the user is allowed to log in.
Ivan Kalik Kalik Informatika ISP
Can you give an example of script? Also how should the script be invoked?
Freeradius *is* open source - rlm_logintime. Your problem is that rlm_logintime doesn't support multiple intervals in the same day - you will need to rework it so that you can pull each interval from the group user belongs to and run in through the loop and reject only if there is no matching time in any of the intervals. If you translate script to perl you can just list perl in authorize. For other languages invoke it with exec module. Ivan Kalik Kalik Informatika ISP
participants (2)
-
Ivan Kalik -
Pramada Batchu