Hello Xavier -

On Thu, 30 Nov 2000, [EMAIL PROTECTED] wrote:
> Hell@ all,
> 
> 
> has Radiator some kind of so called 'Phantom Record'?
> 
> As we see in AddressAllocatorSQL.pm, when an Access-Request packet arrives,
> an 'update' statement is executed, doing a
> 
> $q = "update RADPOOL set STATE=1, TIME_STAMP=$now, 
> EXPIRY=$expiry, USERNAME=$username where YIADDR='$details{yiaddr}'";
> 
> Then, if an Accounting-Request packet corresponding with the above packet
> never arrives, the ip-address doesn't become available again.
> 
> We are thinking in a 'patch' for AddressAllocatorSQL, a kind of PHANTOM
> RECORD.
> 
> Example:
> 
> an IP-ADDRESS is available, with STATE=0;
> 
> 
> *********************
> an Access-Request arrives -> an IP-address is reserved, and STATE becomes 1.
> 
> an Accounting-Request arrives and it's OK -> ip-address changes with STATE =
> 2
> ******************
> 
> 
> 
> 
> Then, if an Access-Request arrives, and there is no Accounting-Request...
> 
> if a second Access-Request arrives, the first one becomes unusable, and a
> new one is allocated, doing a duplicated 'assigned' ip to the same user,
> with a non used ip.
> 
> 
> 
> ****************
> 
> 
> The solution-> if a second Access-Request arrives, check for a previous
> allocated IP address with STATE=1 and delete them, 
> and allocate a new one
> 
> 
> 
> Humm... it sounds a little confusing..
> When we have the solution for this problem, we email to you...
> 

This has been discussed on the list several times before.

No there is not an intermediate state when allocating IP addresses because if
you miss an accounting start record, you will reallocate an in-use address and
then everything will break.

Some of our customers have made these modifications, but if you do decide to do
this be aware of the consequences and be very careful.

Note that there are address reclaim parameters that you can use instead.

Have a look at sections 6.43.3 (DefaultLeasePeriod) and 6.43.4
(LeaseReclaimInterval) in the Radiator 2.17.1 reference manual.

hth

Hugh


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence. 


===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to