(RADIATOR) No PoolHint found problem

Hugh Irvine hugh at open.com.au
Sun Apr 11 19:55:29 CDT 2004


Hello Ganbold -

Thanks for sending the configuration and debug.

You should put the AddToReply in the AuthBy DSLAuthOnly1 (or in an 
AuthBy GROUP around it), not in the Handler where it is executed 
_after_ the AuthBy DYNADDRESS (as you can see from the debug).

regards

Hugh


On 10 Apr 2004, at 18:46, Ganbold wrote:

> Hi,
>
> I have problem using AddressAllocator and DYNADDRESS feature in 
> Radiator-3.9.
> Radius log says :
>
> Sat Apr 10 17:25:01 2004: DEBUG: No PoolHint found. No address will be 
> allocated
> Sat Apr 10 17:25:01 2004: DEBUG: Access accepted for erdmon
> Sat Apr 10 17:25:01 2004: WARNING: No such attribute PoolHint
>
>
> My config file part:
>
> <AddressAllocator SQL>
>         Identifier myallocator
>
>         DBSource        dbi:mysql:radius:x.x.x.x
>         DBUsername      admin
>         DBAuth          xxx
>
>         <AddressPool poolCorecess6>
>                 Subnetmask      255.255.255.192
>                 Range   202.179.28.95 202.179.28.126
>         </AddressPool>
>
>         FindQuery select TIME_STAMP, YIADDR, SUBNETMASK, DNSSERVER 
> from DSLPOOL where POOL='%0' and STATE=0 order by TIME_STAMP
>         AllocateQuery update DSLPOOL set 
> STATE='1',TIME_STAMP='%0',EXPIRY='%1', USERNAME='%2' where YIADDR='%3' 
> and TIME_STAMP ='%4'
>         DeallocateQuery update DSLPOOL set STATE=0, TIME_STAMP='%t' 
> where YIADDR='%0'
>         CheckPoolQuery select STATE from DSLPOOL where YIADDR='%0'
>         AddAddressQuery insert into DSLPOOL (STATE, TIME_STAMP,POOL, 
> YIADDR, SUBNETMASK, DNSSERVER) values (0, '%t', '%0', '%1', '%2', 
> '%3')
>         ReclaimQuery update DSLPOOL set STATE=0 where STATE!=0 and 
> EXPIRY < '%0'
> </AddressAllocator>
>
>
>         <AuthBy DYNADDRESS>
>                 Identifier DynDslAllocator
>                 AddressAllocator    myallocator
>                 PoolHint %{Reply:PoolHint}
>                 MapAttribute    yiaddr, Framed-IP-Address
>                 MapAttribute    subnetmask, Framed-IP-Netmask
>                 StripFromReply  PoolHint
>         </AuthBy>
>
> <Handler NAS-IP-Address = x.x.x.x>
>         AccountingHandled
>         SessionDatabase SQL1
>         AuthByPolicy ContinueWhileAccept
>         AuthBy DSLAuthOnly1
>         AddToReply PoolHint="poolCorecess6"
>         AuthBy DynDslAllocator
> </Handler>
>
>
>
>
>
> Trace 4 debug:
> --------------------------------------------------------------
>         User-Name = "erdmon"
>         Service-Type = Framed-User
>         Framed-Protocol = PPP
>         User-Password = 
> "<142><140>)<141>^<177><15>P<145><217>O<171><173><213><7>l"
>         NAS-IP-Address = x.x.x.x
>         NAS-Port = 600
>
> Sat Apr 10 17:25:01 2004: DEBUG: Rewrote user name to erdmon
> Sat Apr 10 17:25:01 2004: DEBUG: Rewrote user name to erdmon
> Sat Apr 10 17:25:01 2004: DEBUG: Rewrote user name to erdmon
> Sat Apr 10 17:25:01 2004: DEBUG: Rewrote user name to erdmon
> Sat Apr 10 17:25:01 2004: DEBUG: Handling request with Handler 
> 'NAS-IP-Address = x.x.x.x'
> Sat Apr 10 17:25:01 2004: DEBUG: SQL1 Deleting session for erdmon, 
> x.x.x.x, 600
> Sat Apr 10 17:25:01 2004: DEBUG: do query is: 'delete from DSLONLINE 
> where NASIDENTIFIER='x.x.x.x' and NASPORT='600'':
>
> Sat Apr 10 17:25:01 2004: DEBUG: Handling with Radius::AuthSQL
> Sat Apr 10 17:25:01 2004: DEBUG: Handling with Radius::AuthSQL: 
> DSLAuthOnly1
> Sat Apr 10 17:25:01 2004: DEBUG: Query is: 'select 
> PASSWORD,REPLYATTR,CHECKATTR from DSL_SUBSCRIBERS where 
> USERNAME='erdmon' and STATUS='Active'':
>
> Sat Apr 10 17:25:01 2004: DEBUG: Radius::AuthSQL looks for match with 
> erdmon
> Sat Apr 10 17:25:01 2004: DEBUG: Radius::AuthSQL ACCEPT:
> Sat Apr 10 17:25:01 2004: DEBUG: Handling with Radius::AuthDYNADDRESS
> Sat Apr 10 17:25:01 2004: DEBUG: No PoolHint found. No address will be 
> allocated
> Sat Apr 10 17:25:01 2004: DEBUG: Access accepted for erdmon
> Sat Apr 10 17:25:01 2004: WARNING: No such attribute PoolHint
> Sat Apr 10 17:25:01 2004: DEBUG: Packet dump:
> *** Sending to x.x.x.x port 1812 ....
> Code:       Access-Accept
> Identifier: 166
> Authentic:  <0><0><0><167><0><0><0><167><0><0><0><167><0><0><0><167>
> Attributes:
>         Framed-Protocol = PPP
>         Service-Type = Framed-User
>         Framed-MTU = 1500
>         PoolHint = poolCorecess6
>
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
>
>

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list