[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Is Dynamic IP Address allocation possible in freeradius ?
From:       "Harish Kumar" <hkumar () bplitl ! com>
Date:       2003-04-30 13:16:02
[Download RAW message or body]

Hi,

    I am a newbie to freeradius. I have just about managed to install
freeradius and integrate it with mysql database for User Authentication. The
database configuration details are as below:

mysql> select * from radcheck;
+----+----------+----------------+----+---------------+
| id | UserName | Attribute      | op | Value         |
+----+----------+----------------+----+---------------+
|  1 | radius   | Crypt-Password | == | /MM/KLyPphZ1U |
|  2 | Harish   | Crypt-Password | == | /0GrlKWT8qNF. |
+----+----------+----------------+----+---------------+
2 rows in set (0.00 sec)

mysql> select * from radgroupcheck;
+----+-----------+-----------+----+-------+
| id | GroupName | Attribute | op | Value |
+----+-----------+-----------+----+-------+
|  3 | abc       | Auth-Type | := | Local |
+----+-----------+-----------+----+-------+
1 row in set (0.00 sec)

mysql> select * from radgroupreply;
+----+-----------+-------------------+----+-----------+------+
| id | GroupName | Attribute         | op | Value     | prio |
+----+-----------+-------------------+----+-----------+------+
|  1 | abc       | Framed-IP-Address | =  | 10.0.3.1+ |    0 |
+----+-----------+-------------------+----+-----------+------+
1 row in set (0.00 sec)

mysql> select * from usergroup;
+----+----------+-----------+
| id | UserName | GroupName |
+----+----------+-----------+
|  1 | radius   | abc       |
|  2 | Harish   | abc       |
+----+----------+-----------+
2 rows in set (0.00 sec)

But each time an Authentication-Request is sent to the Radius Server, the
same Framed-IP-Address ie. 10.0.3.2 is being allocatted.

Could anybody help me out on this? Is there anything else missing in my
configuration to enable Dynamic IP Address allocation?

Thanks,
Harish

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2919.6307" name=GENERATOR></HEAD>
<BODY>
<P><FONT face="Courier New" size=2><SPAN 
class=766084912-30042003>Hi,</SPAN></FONT></P>
<P><FONT face="Courier New" size=2><SPAN 
class=766084912-30042003>&nbsp;&nbsp;&nbsp; I am a newbie to freeradius. I have 
just about managed to install freeradius and integrate it with mysql database 
for User Authentication. The database configuration details are as 
below:</SPAN></FONT></P>
<P><FONT face="Courier New" size=2><SPAN class=766084912-30042003>mysql&gt; 
select * from 
radcheck;<BR>+----+----------+----------------+----+---------------+<BR>| id | 
UserName | Attribute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | op | 
Value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>+----+----------+----------------+----+---------------+<BR>|&nbsp; 1 | 
radius&nbsp;&nbsp; | Crypt-Password | == | /MM/KLyPphZ1U |<BR>|&nbsp; 2 | 
Harish&nbsp;&nbsp; | Crypt-Password | == | /0GrlKWT8qNF. 
|<BR>+----+----------+----------------+----+---------------+<BR>2 rows in set 
(0.00 sec)</SPAN></FONT></P>
<P><FONT face="Courier New" size=2><SPAN class=766084912-30042003>mysql&gt; 
select * from radgroupcheck;<BR>+----+-----------+-----------+----+-------+<BR>| 
id | GroupName | Attribute | op | Value 
|<BR>+----+-----------+-----------+----+-------+<BR>|&nbsp; 3 
|&nbsp;abc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Auth-Type | := | Local 
|<BR>+----+-----------+-----------+----+-------+<BR>1 row in set (0.00 
sec)</SPAN></FONT></P>
<P><FONT face="Courier New" size=2><SPAN class=766084912-30042003>mysql&gt; 
select * from 
radgroupreply;<BR>+----+-----------+-------------------+----+-----------+------+<BR>| 
id | GroupName | Attribute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | op 
| Value&nbsp;&nbsp;&nbsp;&nbsp; | prio 
|<BR>+----+-----------+-------------------+----+-----------+------+<BR>|&nbsp; 1 
|&nbsp;abc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Framed-IP-Address | =&nbsp; | 
10.0.3.1+ |&nbsp;&nbsp;&nbsp; 0 
|<BR>+----+-----------+-------------------+----+-----------+------+<BR>1 row in 
set (0.00 sec)</SPAN></FONT></P>
<P><FONT face="Courier New" size=2><SPAN class=766084912-30042003>mysql&gt; 
select * from usergroup;<BR>+----+----------+-----------+<BR>| id | UserName | 
GroupName |<BR>+----+----------+-----------+<BR>|&nbsp; 1 | radius&nbsp;&nbsp; 
|&nbsp;abc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>|&nbsp; 2 | 
Harish&nbsp;&nbsp; |&nbsp;abc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>+----+----------+-----------+<BR>2 rows in set (0.00 sec)</SPAN></FONT></P>
<DIV><FONT face=Arial size=2><SPAN class=766084912-30042003>But each time an 
Authentication-Request is sent to the Radius Server, the same Framed-IP-Address 
ie. 10.0.3.2 is being allocatted.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=766084912-30042003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=766084912-30042003>Could anybody help 
me out on this? Is there anything else missing in my configuration to enable 
Dynamic IP Address allocation?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=766084912-30042003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=766084912-30042003>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=766084912-30042003>Harish</SPAN></FONT></DIV></BODY></HTML>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic