Hi Phil -

On Fri, 07 Jan 2000, Phil Freed wrote:
> This may or may not be related my accounting record problem.
> (I suspect not.)
> 
> I need a special handler for slot 6 on one of my NASs.  I have
> the following sections in my radius.cfg:
> 
>   #<Handler NAS-Address-Port-List=%D/ports.isdn,Chassis-Call-Slot=6>
>   <Handler Client-Id=208.153.18.227,Chassis-Call-Slot=6>
>   <Handler Client-Id=208.153.18.227>
> 
> The first item is commented out because it kills radius 
> with the message
>  Can't call method "log" on unblessed reference at 
> /usr/local/lib/perl5/site_perl/5.005/Radius/AuthGeneric.pm line 644.
> 

You will not be able to use the NAS-Address-Port-List=%D/ports.isdn construct,
as Radiator expects to do a one-to-one match on the attribute in the packet and
whatever you specify on the right side of the "=".

It shouldn'd kill Radiator though - I'll look at it a bit later.

You also can't specify two Handler clauses one after the other as you have
showon above. Handlers must be complete clauses, like this:

<Handler ....>
        <AuthBy ....
                ....
        </AuthBy>
</Handler>


> The second one should do just what I want, but it doesn't work.
> (See log entries below.)  The third item is just there for 
> debugging - but it mystifies rather than enlightens.  Apparently,
> it matches the wrong packets altogether.  Note that the handler
> is *supposed* to match the client xxxxx.227, but the
> log shows that it matches xxxxx.225 .
> 
> I'm afraid I'm stumped.  Am I missing something obvious
> here?
> 
> 
> ### From radius.cfg:
> 
> 
> ## This kills radius:
> #<Handler NAS-Address-Port-List=%D/ports.isdn,Chassis-Call-Slot=6>
> #       PreAuthHook file:"/usr/local/etc/preauth.hook"
> #        AcctLogFileName %L/x%R-%c-%Y%m%d
> #       PasswordLogFileName %L/$R:%Y%m.pass
> #       <AuthBy FILE>
> #               Filename        %D/users.isdn
> #       </AuthBy>
> #</Handler>
> 
> # This is what I want:
> <Handler Client-Id=208.153.18.227,Chassis-Call-Slot=6>
>         PreAuthHook file:"/usr/local/etc/preauth.hook"
>         AcctLogFileName %L/x%R-%c-%Y%m%d
>         PasswordLogFileName %L/$R:%Y%m.pass
>         <AuthBy FILE>
>                 Filename        %D/users.isdn
>         </AuthBy>
> </Handler>
> 
> <Handler Client-Id=208.153.18.227>
>         PreAuthHook file:"/usr/local/etc/preauth.hook"
>         AcctLogFileName %L/x%R-%c-%Y%m%d
>         PasswordLogFileName %L/$R:%Y%m.pass
>         <AuthBy FILE>
>                 Filename        %D/users.isdn
>         </AuthBy>
> </Handler>
> 
> 
> ### From the log:
> 
> *** Received from 208.130.42.53 port 45016 ....
> Code:       Access-Request
> Identifier: 242
> Authentic:  1234567890123456
> Attributes:
>         User-Name = "philtest"
>         Service-Type = Framed-User
>         Client-Id = 208.153.18.227
>         NAS-Port = 1234
>         NAS-Port-Type = Async
>         User-Password = "<173><21><220><249><141><11>g<133><130>Cl<216>u'<154><2
> 47>"
>         Chassis-Call-Slot = 6
> 
> Fri Jan  7 04:53:18 2000: DEBUG: Check if Handler Request-Type = Accounting-Request 
>should be used 
> to handle this request
> Fri Jan  7 04:53:18 2000: DEBUG: Check if Handler 
>Client-Id=208.153.18.227,Chassis-Call-Slot=6 shou
> ld be used to handle this request
> Fri Jan  7 04:53:18 2000: DEBUG: Check if Handler Client-Id=208.153.18.227 should be 
>used to handle
>  this request
> Fri Jan  7 04:53:18 2000: DEBUG: Check if Handler Realm=psdu.net should be used to 
>handle this requ
> est
>   etc...
> ----------------------
> 
> Fri Jan  7 04:59:43 2000: DEBUG: Packet dump:
> *** Received from 208.153.18.225 port 1645 ....
> Code:       Access-Request
> Identifier: 48
> Authentic:  <10><230>y<247><135><218><142><234>,SqA<203>$<153><172>
> Attributes:
>         User-Name = "marier"
>         User-Password = "`<138>8<166>'a<170><252><166><247><4>M<147><226><245><13>"
>         Client-Id = 208.153.18.225
>         NAS-Port = 781
>         Acct-Session-Id = "51147957"
>         USR-Interface-Index = 2037
>         Service-Type = Framed-User
>         Framed-Protocol = PPP
>         Chassis-Call-Slot = 4
>         Chassis-Call-Span = 1
>         Chassis-Call-Channel = 13
>         Calling-Station-Id = ""
>         Called-Station-Id = "6428000"
>         NAS-Port-Type = Async
> 
> Fri Jan  7 04:59:43 2000: DEBUG: Check if Handler Request-Type = Accounting-Request 
>should be used 
> to handle this request
> Fri Jan  7 04:59:43 2000: DEBUG: Check if Handler 
>Client-Id=208.153.18.227,Chassis-Call-Slot=6 shou
> ld be used to handle this request
> Fri Jan  7 04:59:43 2000: DEBUG: Check if Handler Client-Id=208.153.18.227 should be 
>used to handle
>  this request
> Fri Jan  7 04:59:43 2000: DEBUG: Handling request with Handler 
>'Client-Id=208.153.18.227'
>    etc....

Also - what version of Radiator are you running and what dictionary? My
standard dictionary for Radiator 2.14.1 shows the following:

        VENDORATTR  429 USR-Chassis-Call-Slot   36889   integer  

In other words, Chassis-Call-Slot does not exist and this will certainly cause
problems in your Handler.

hth

Hugh


-- 
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,
NT, Rhapsody

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to