Hello Dean,
Your log file works OK for me in terms of the address allocator:
oscar$ ./radiusd -config_file /tmp/r.cfg -trace 4
Fri Jun 9 15:37:07 2000: DEBUG: Checking address 203.44.90.130
Fri Jun 9 15:37:07 2000: DEBUG: Query is: select STATE from RADPOOL where
YIADDR='203.44.90.130'
Fri Jun 9 15:37:07 2000: DEBUG: Checking address 203.44.90.131
Fri Jun 9 15:37:07 2000: DEBUG: Query is: select STATE from RADPOOL where
YIADDR='203.44.90.131'
Fri Jun 9 15:37:07 2000: DEBUG: Checking address 203.44.90.132
Fri Jun 9 15:37:07 2000: DEBUG: Query is: select STATE from RADPOOL where
YIADDR='203.44.90.132'
Fri Jun 9 15:37:07 2000: DEBUG: Checking address 203.44.90.133
Fri Jun 9 15:37:07 2000: DEBUG: Query is: select STATE from RADPOOL where
YIADDR='203.44.90.133'
Fri Jun 9 15:37:07 2000: DEBUG: Checking address 203.44.90.134
Fri Jun 9 15:37:07 2000: DEBUG: Query is: select STATE from RADPOOL where
YIADDR='203.44.90.134'
Fri Jun 9 15:37:07 2000: DEBUG: Reclaiming expired leases
Fri Jun 9 15:37:07 2000: DEBUG: do query is: update RADPOOL set STATE=0 where
state!=0 and EXPIRY < 960529027
Could we see your log file output when you start up your Radiator?
BTW, you will also need to review the location of your <AuthBy DYNADDRESS>,
since AuthBy RADIUS does not perform its actions inline (unless you choose the
Synchronous option). Proabbly the best place is for you to put <AuthBy
DYNADDRESS> before your AuthBy RADIUS, else invoke your AuthBy DYNADDRESS in a
an AuthBy RADIUS ReplyHook (so the address wil be allocated _after_ receiving a
reply).
> Hi Mike,
>
> Config file as discussed :)
>
> LogDir /var/log/radius
>
>
> # Set this to the database directory. It should contain these files:
> # users The user database
> # dictionary The dictionary for your NAS
> DbDir /etc/raddb/
>
> # This clause defines a single client to listen to
> <Client 203.44.37.12>
> Secret xxxxxxx
> NoDefault
> IgnoreAcctSignature
> </Client>
>
> # For testing: this allows us to honour requests from radpwtst
> # on the same host.
> <Client localhost>
> Secret xxxxxxxx
> DupInterval 0
> </Client>
>
> <AddressAllocator SQL>
> Identifier xxx
>
> DBSource dbi:mysql:radius
> DBUsername root
> DBAuth xxxxxxxx
>
> <AddressPool pool1>
> Subnetmask 255.255.255.0
> Range 203.44.90.130 203.44.90.134
> </AddressPool>
> </AddressAllocator>
>
> <Log SYSLOG>
> Facility radius
> Trace 4
> </Log>
>
> # This clause handles all users from all realms by looking them up
> # in the users file at /usr/local/etc/raddb/users
> <Realm DEFAULT>
> <AuthBy GROUP>
> AuthByPolicy ContinueWhileReject
>
> <AuthBy FILE>
> #The filename defaults to %D/users
> </AuthBy>
>
> <AuthBy UNIX>
> Filename /etc/shadow
> FramedGroup 0
> </AuthBy>
> </AuthBy>
> # Log accounting to the detail file in LogDir
> AcctLogFileName %L/detail
> </Realm>
>
> <Realm kbs.net.au>
> RewriteUsername s/^([^@]+).*/$1/
> <AuthBy RADIUS>
> Host xxxxxxxxxx
> Secret xxxxxxxx
> PoolHint %{Reply:PoolHint}
> </AuthBy>
> AcctLogFileName %L/detail.xxx
>
> <AuthBy DYNADDRESS>
> Allocator xxx
> StripFromReply PoolHint
> </AuthBy>
>
> </Realm>A
>
> --
>
> Dean Brandt
>
> Technical Director
> Cain Internet Services Pty Ltd
> ACN 091949405
> Ph 61-3-95231065
> Satellite Access - $29.95 - no limits
>
>
>-- End of excerpt from [EMAIL PROTECTED]
--
Mike McCauley [EMAIL PROTECTED]
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au
Phone +61 3 9598-0985 Fax +61 3 9598-0955
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
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.