On Mon, 2 Sep 2002, mehdi roomi wrote:

>   Dear Kostas & freeradius users,
>
> because I have more that 10 different groups  day, night, test,... with
> different login-times and different Max-Session-Times ...
>
> for example the sql tables are as below:
>
> usergroup:
> +----+----------+-----------+
> | id | UserName | GroupName |
> +----+----------+-----------+
> |  2 | mehdi    | night     |
> |  4 | hadi     | test      |
> +----+----------+-----------+
>
> radgroupcheck:
> +----+-----------+------------------+--------------+------+
> | id | GroupName | Attribute        | Value        | op   |
> +----+-----------+------------------+--------------+------+
> |  3 | night     | Login-Time       | Any1400-2348 | :=   |
> |  4 | test      | Max-Session-Time | 200            | :=   |
> |  5 | test      | Login-Time       | Any1700-2000 | :=   |
> +----+-----------+------------------+--------------+------+
>
>
> is it possible to define groups login-time and max-session-time in users file and 
>define the users in sql simultaniously ?
> I mean  to delete the rows no. 3,4,5 from radgroupcheck and define some thing
> like the following in the users file  but the usergroup table be intact :
>
>   day      Current-Time == "Any1400-0200", Max-Monthly-Session := 90000
>        Fall-Through = 1
>   day      Current-Time == "Any0200-0700", Max-Monthly-Session := 270000
>         Fall-Through = 1
>   day      Current-Time == "Any0700-1400", Max-Monthly-Session := 180000
>         Fall-Through = 1
>
>
>   test     Current-Time == "Any1400-0200", Max-Monthly-Session := 190000
>        Fall-Through = 1
>   test     Current-Time == "Any0200-0700", Max-Monthly-Session := 70000
>         Fall-Through = 1


DEFAULT         Sql-Group == "test", Current-Time == "Any1400-0200",
Max-Monthly-Session := 90000

in recent cvs snapshots

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]      National Technical University of Athens, Greece
Work Phone:             +30 10 7721861
'Go back to the shadow' Gandalf



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to