Neale -

Tim kindly pointed out the following contributed patch file in the goodies
directory. You might like to check if it does what you require.

Please let us know.

thanks

Hugh

 ----------  Forwarded Message  ----------
Subject: Re: (RADIATOR) adding "default" items to a reply
Date: Wed, 11 Aug 1999 08:06:39 -0400 (EDT)
From: Timothy Wells <[EMAIL PROTECTED]>


Greetings,

I ran into the same thing. On the distribution in the goodies directory was an
email which included a AddToReplyIfNotExist clause. See if that will work for you.

-- Tim

> 
> Hi Neale -
> 
> On Tue, 10 Aug 1999, Neale Banks wrote:
> > On Tue, 10 Aug 1999, Hugh Irvine wrote:
> > 
> > > On Mon, 09 Aug 1999, Neale Banks wrote:
> > > > Hi all,
> > > > 
> > > > For some attributes (especially timeouts) I want to add a "default" value 
> > > > iff the attribute is not specified in the user's record (if it is 
> > > > specified, we just use what's in the user's record.
> > > > 
> > > > Can I do this with AddToReply (docs don't mention conditional adding), or 
> > > > will it be necessary to do something more convoluted in a Hook?
> > > 
> > > You should probably use "DefaultReply" 
> > > (Section 6.14.8 in the 2.14.1 manual).
> > 
> > Thanks Hugh.  I saw that one, but the manual says "it adds attributes to 
> > an Access-Accept _only_ if there would otherwise be no reply attributes." 
> > which I read as saying that the reply had to be totally void of A-V pairs.
> > 
> > Perhaps I'm tackling this the wrong way?  The underlying requirement is 
> > to be able to set per-NAS defaults for some items (e.g. idle timeouts) 
> > but have these over-ridable by explicit entries in a user's record (e.g. 
> > long/disabled idle timeout for "permanent" users).  My thinking was to 
> > have a Handler that added to the reply for specific A-V pairs _only_ if 
> > that A-V pair was not present in the user's reply.
> > 
> 
> I see. Unfortunately Radiator does not do this as it stands currently (and we
> have no plans to add such functionality). You could always implement this sort
> of thing in a PostAuthHook, but you would have to fiddle about with the Reply
> attributes already present in the Reply packet.
> 
> It occurs to me however that if you are looking to set per-NAS defaults,
> perhaps the best approach is to configure the NAS's with their defaults
> directly?
> 
> 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.
>
--
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