(RADIATOR) Identifier in Handler

Hugh Irvine hugh at open.com.au
Thu Oct 4 18:58:19 CDT 2001


Hello William -

On Friday 05 October 2001 08:00, William Hernandez wrote:
> Hello everyone,
>
> We use handlers in our radius.cfg such as
>
> <Handler Realm=prdigital.com>
>         Identifier prdigital
>         SessionDatabase prw-sessiondb
>         AuthBy prdigital-plat
>
>         PostAuthHook file:"/etc/raddb/setSessionTimeout"
>         AcctLogFileName /var/log/radacct/prdigital/detail
>         PasswordLogFileName
> /var/log/radacct/prdigital/radius.log
>         ExcludeFromPasswordLog  root
> </Handler>
>
> which worked fine when we had users logging is as
> "user at prdigital.com".
>
> Now we can also have users logging in as "wbprdigital.com" which
> I also want to fall into the above Handler. We need to add some
> reply items to these users so in the users file I have:
>
> wbprdigital.com Auth-Type = "prdigital"
>         Service-Type = Framed-User,
>         Framed-Protocol = PPP,
>         Framed-IP-Address = 208.249.79.280,
>         Framed-IP-Netmask = 255.255.255.255,
>         Framed-Compression = Van-Jacobson-TCP-IP,
>         Ascend-Idle-Limit = 0,
>         Idle-Timeout = 0
>
> The problem is that Radiator doesn't use the Identifier in the
> Handler clause. So there's probably a workaround. Isn't there?
>

Radiator itself does not use the Identifiers in Handlers (they are available 
for use by custom hooks), so what you describe above will not work.

I must confess I do not understand what is meant to happen with this clause, 
but you can make it match both Realms like this:

# define Handler

<Handler Realm=/prdigital.com|wbprdigital.com/>
        Identifier prdigital
        SessionDatabase prw-sessiondb
        AuthBy prdigital-plat

        PostAuthHook file:"/etc/raddb/setSessionTimeout"
        AcctLogFileName /var/log/radacct/prdigital/detail
        PasswordLogFileName \
                /var/log/radacct/prdigital/radius.log
        ExcludeFromPasswordLog  root
</Handler>


hth

Hugh


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