Hello Jesus -

> 
> This is my configuration file, i think it is ok, but when the user access, it
> does not get an ip
> address, and the logfile show an error:
> 
> 
> <AddressAllocator SQL>
>   DBUsername *****
>   DBAuth     *****
>   DBSource   dbi:mysql:radius
>   Identifier TablaPooles
> 
>   <AddressPool oficina_si>
>     Range      192.168.7.10 192.168.7.128
>     Subnetmask 255.255.255.255
>   </AddressPool>
> 
>   <AddressPool oficina_no>
>     Range      192.168.6.10 192.168.6.128
>     Subnetmask 255.255.255.255
>   </AddressPool>
> 
>   <AddressPool mor_test>
>     Range      212.95.216.161 212.95.216.172
>     Range      212.95.216.174 212.95.216.190
>     Subnetmask 255.255.255.255
>   </AddressPool>
> </AddressAllocator>
> 
> <Realm telmadcb>
>   AuthByPolicy        ContinueWhileAccept
>   AcctLogFileName     %L/oficina.logs/%Y/AS-acc-telmadcb-%Y%m.log
>   PasswordLogFileName %L/oficina.logs/%Y/AS-aut-telmadcb-%Y%m.log
>   RewriteUsername     s/^([^@]+).*/$1/
>   <AuthBy DBFILE>
>     Filename          %D/telmad
>     DynamicReply      Callback-Number
>     AddToReply        Service-Type          = Callback-Framed-User, \
>                       Framed-Protocol       = PPP,                  \
>                       Primary_DNS_Server    = 192.168.4.17,
> Secondary_DNS_Server  = 192.168.4.18, \
>                       Primary_NBNS_Server   = 192.168.4.17,
> Secondary_NBNS_Server = 192.168.4.18, \
>                       Callback-Number       = %{Calling-Station-Id},\
>                       VPN-Neighbor          = 192.168.4.1
>   </AuthBy>
>   <AuthBy DYNADDRESS>
>     Allocator         TablaPooles
>     PoolHint          oficina_no
>   </AuthBy>
> </Realm>
> 

The problem you have is due to some confusion in how to use the "PoolHint"
parameter in the AuthBy DYNADDRESS. From your configuration above, you should
add a reply attribute called PoolHint in your AuthBy DBFILE, then strip it out
after it has been used in the AuthBy DYNADDRESS. Something like this:

<Realm telmadcb>
        AuthByPolicy        ContinueWhileAccept
        AcctLogFileName     %L/oficina.logs/%Y/AS-acc-telmadcb-%Y%m.log
        PasswordLogFileName %L/oficina.logs/%Y/AS-aut-telmadcb-%Y%m.log
        RewriteUsername     s/^([^@]+).*/$1/
        <AuthBy DBFILE>
                Filename          %D/telmad
                DynamicReply      Callback-Number
                AddToReply        Service-Type          = Callback-Framed-User, \
                        Framed-Protocol       = PPP,                  \
                        Primary_DNS_Server    = 192.168.4.17,
                        Secondary_DNS_Server  = 192.168.4.18, \
                        Primary_NBNS_Server   = 192.168.4.17,
                        Secondary_NBNS_Server = 192.168.4.18, \
                        Callback-Number       = %{Calling-Station-Id},\
                        VPN-Neighbor          = 192.168.4.1,\
                        PoolHint = oficina_no
        </AuthBy>
        <AuthBy DYNADDRESS>
                Allocator         TablaPooles
                StripFromReply PoolHint
        </AuthBy>
</Realm>

hth

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
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