simultaneous-use via exec ?

2010-03-19 Thread power159
hi all

I am trying to load simultaneous-use parameter via exec . I have tried it in
any section ( authorize / accounting / post-auth and .. ) at beginning and
end of the section ,
but I dont know why freeradius is not reading it .. its just working when I
am using it in sql .
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: framed-ip-address based on nas-ip-address

2010-03-18 Thread power159
I have read doc/rlm_sql many times but I unable to find any solution .

adding Fall-Through in radreply for user or radgroupreply for groups doesn't
help ..
even I tried to use huntgroups but same result ..

it works just when the user is membership of a group .. mean if I add user
to second group its not working any more and sqlippool is not processing !
its not matter if group checks is matching or no ..

it seems there is something wrong when a user is membership of 2 groups
because its checking none of them when user is in more than 1 group
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

framed-ip-address based on nas-ip-address

2010-03-18 Thread power159
Hi ,
As there was a mistake in my previous email title and as I had big
improvement in processing my problem I am sending a new email .  As I said
in previous email I want to configure freeradius to reply different
framed-ip-addresses based on nas servers .

I found following email in the archive which helped a lot :
http://lists.cistron.nl/pipermail/freeradius-users/2009-January/msg00630.html

the only problem that I have is if user is membership of 2 groups .
freeradius is processing none of them ! even if both are matching ! but if I
remove one of groups its working without any problem ! and assigning ip from
ip pool

read-groups is on

here is my tables :
select * from radcheck;
++--+---+++
| id | username | attribute | op | value  |
++--+---+++
|  4 | test1| User-Password | := | 123456 |
++--+---+++


select * from radgroupcheck;
++---+++-+
| id | groupname | attribute  | op | value   |
++---+++-+
|  1 | group1| Nas-IP-Address | == | 192.168.1.5 |
|  2 | group1| Pool-Name  | := | pool1   |
|  3 | group2| Nas-IP-Address | == | 192.168.1.6 |
|  4 | group2| Pool-Name  | := | pool2   |
++---+++-+


select * from radusergroup;
+--+---+--+
| username | groupname | priority |
+--+---+--+
| test1| group1|0 |
| test1| group2|0 |
+--+---+--+


select * from radippool;
++---+-+--+-+--+-+--+--+
| id | pool_name | framedipaddress | nasipaddress | calledstationid |
callingstationid | expiry_time | username | pool_key |
++---+-+--+-+--+-+--+--+
|  1 | pool1 | 90.90.90.1  |  |
|  | NULL|  | 0|
|  2 | pool1 | 90.90.90.2  |  |
|  | NULL|  |  |
|  5 | pool2 | 91.90.90.1  |  |
|  | NULL|  | 0|
|  6 | pool2 | 91.90.90.2  |  |
|  | NULL|  |  |
++---+-+--+-+--+-+--+--+
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Assigning different IPs for different DNS servers

2010-03-17 Thread power159
Hi all,
is it possible to assign different IP addresses for different NAS servers ?

for example :
NAS 1.1.1.1 = IP 5.5.5.5
NAS 2.2.2.2 = IP 6.6.6.6
NAS 3.3.3.3 = IP POOL X

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