I am trying to use the routines from goodies/hooks.txt.

I am using 2.16.

This file says "[t]he hooks are designed for use with Radiator 2.15". But
the changes for 2.16 say that the hooks file has been updated -- so I
assume it works for 2.16 also.

The hooks.txt documentation says:
  DefineGlobalVar ProfileDefs "%D/profile_definitions_file"
But I believe this should be
  DefineGlobalVar ProfileDefsFilename %D/profile_definitions_file
(Notice the "Filename" and no quotes.)

I want to add attributes if it comes from a certain client. So I added an

  Identifier web
to my testing clients (in the <Client> containers).

My test config has:

DefineGlobalVar ProfileDefsFilename %D/etc/profile.def
StartupHook file:"%D/hooks/getProfiles"

and:

<Realm iwbc>
  AcctLogFileName /usr/adm/radacct/%C/detail
  <AuthBy FILE>
    Filename %D/users/iwbc.users
    DefaultReply Service-Type=Framed,Framed-Protocol=PPP,\
                 Framed-IP-Netmask=255.255.255.255,Framed-Routing=None,\
                 Framed-Compression=Van-Jacobson-TCP-IP,Framed-MTU=1500
    PostAuthHook file:"%D/hooks/replaceProfiles"
  </AuthBy>
</Realm>


My etc/profile.def contains:

Tigris:web:ACC-Ip-Pool-Name="spiretech",ACC-DNS-Server-Pri=216.228.70.2,ACC-DNS-
Server-Sec=216.228.65.6

I can't seem to figure out how to get replaceProfiles to work. I want
these attributes added:

Any ideas or suggestions?

Thanks,

Jeremy C. Reed                          [EMAIL PROTECTED]
UNIX Admin                              Fax: 425-290-1751
IWBC ISP Services                       http://www.iwbc.net



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