On Wed, 31 May 2000, Hugh Irvine wrote:

> On Wed, 31 May 2000, Jeremy C. Reed wrote:
> > 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:
> > 

I didn't explain myself very well. "web" is the name of the client that I
am using for testing (it is not a NAS but a webserver running
radpwtst). Tigris was just a made-up profile name -- because I didn't
understand what it meant. When I have it working, "Tigris" will also be
the Identifier.

> with the user record containing Profile = web (as a web-only user?) and the
> Client Identifer set to Tigris (ie. these are the attributes that we have to
> set for a Tigris NAS).

So I added this "Profile" to my user record. But what if I want it to
apply to all users (and all realms)? Do I have to add it to every user
record?

Now I am noticing an error message:

Wed May 31 10:12:43 2000: ERR: Unknown keyword '%D/hooks/replaceProfiles'
in /usr/local/radiator/etc/radiator.cfg line 5408

Then when I changed (the realm container as shown above) to not have
quotes:
      PostAuthHook file:%D/hooks/replaceProfiles
I receive this error instead:

Wed May 31 10:14:09 2000: ERR: Unknown keyword 'PostAuthHook' in
/usr/local/radiator/etc/radiator.cfg line 5408

(I turned up the debugging to 4, but no additional messages about the
above error. It did report the debugging message for
setVariable in the getProfiles message.)

Any ideas?

Thanks,

         Jeremy Reed

         http://www.iwbc.net 
         [EMAIL PROTECTED]



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