Ciao Alessandro -

You cannot run any AuthBy clause (including an AuthBy DYNADDRESS) after an 
AuthBy RADIUS clause. This is because an AuthBy RADIUS clause returns 
immediately, without waiting for the proxy reply to come back.

The only way you can allocate IP addresses dynamically with an AuthBy RADIUS 
clause is by using a ReplyHook.

This has been discussed on the list many times.

In any case, there is an example of how to do it in the file 
"goodies/hooks.txt" in the Radiator distribution.

hth

Hugh


On Tuesday 17 July 2001 02:37, Alessandro Chiolo wrote:
> I'm trying to apply different dynamic pools to different handlers. this
> works with a local file but doesn't when proxying the request to a remote
> radius.
>
> this is the relevant part of my config:
> -------------------------------------------------
> <AddressAllocator SQL>
>     Identifier  db0
>     DBSource    dbi:mysql:radius:xxxxxxxxx
>     DBUsername  xxxxxxxxxxx
>     <AddressPool pool.x>
>         Range   x.x.x.x x.x.x.x
>     </AddressPool>
>     <AddressPool pool.y>
>         Range   y.y.y.y y.y.y.y
>     </AddressPool>
> </AddressAllocator>
>
> <Handler Client-Port-DNIS=/0101$/>
>     AuthByPolicy        ContinueWhileAccept
>     <AuthBy FILE>
>         Filename        %D/users
>         Nocache
>     </AuthBy>
>     <AuthBy DYNADDRESS>
>         Allocator       db0
>         PoolHint        pool.x
>         MapAttribute    yiaddr,Framed-Address
>         MapAttribute    subnetmask,Framed-Netmask
>     </AuthBy>
> </Handler>
>
> <Handler Client-Port-DNIS=/0102$/>
>     RewriteUsername     s/^([^@]+).*/$1/
>     AuthByPolicy        ContinueWhileAccept
>     <AuthBy RADIUS>
>         Host                    remote.radius.ip
>         Secret                  xxxxxxxx
>     </AuthBy>
>     <AuthBy DYNADDRESS>
>         Allocator       db0Pool
>         PoolHint        pool.y
>         MapAttribute    yiaddr,Framed-Address
>         MapAttribute    subnetmask,Framed-Netmask
>     </AuthBy>
> </Handler>
>
> -------------------------------------------------
>
> any hints?
>
> regards,
> A.Chiolo
>
> --
> Alessandro Chiolo <[EMAIL PROTECTED]>
> Network Manager, Easynet Italy
> "I'm Winston Wolf, I solve Problems."
>
>
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.

-- 
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.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to