Hugh,
Unfortunately that does not seem to solve my problem. I must send
the following reply to my upstream provider:
Ascend-Data-Filter="ip in forward tcp est"
Ascend-Data-Filter="ip in forward dstip 254.170.212.0/24"
Ascend-Data-Filter="ip in drop tcp dstport = 25"
Ascend-Data-Filter="ip in forward"
Thanks to your help, I was able to add the attributes, now I must
test whether those values exist in the reply from the authenticating radius
server. If they don't then I must add them.
I tried using AddToReplyIfNotExist, but it would only insert the
first attribute. I even typed it on one line, seperating the attributes
with a comma.
What could I put in my "ReplyHook" sub to test if
"Ascend-Data-Filter" or one of the Values of an attribute equaled "ip in
drop tcp dstport = 25" already exists.
Bob Saunders
At 11:31 AM 4/19/2000 +1000, you wrote:
>Hello Bob -
>
>On Wed, 19 Apr 2000, Robert Saunders wrote:
> > After receiving a reply from an authenticating radius server I must test
> > to see if the attribute "Ascend_Data-Filter" in its reply, if not, then I
> > must add it.
> >
> > How can I test if that attribute is in the reply from the
> authenticating
> > radius server?
> >
> > I have already solved the problem of adding the attribute to the
> reply
> > packet I am sending out, just need to first test if the authenticating
> > radius server is sending it to me.
> >
>
>Either use "AddToReplyIfNotExist", or write a ReplyHook.
>
>Have a look at section 6.14.8 in the Radaitor 2.15 reference manual.
>
>For some example hooks have a look at:
>
>http://www.open.com.au/radiator/downloads/patches-2.15/hooks.txt
>
>hth
>
>Hugh
>
>--
>Radiator: the most portable, flexible and configurable RADIUS server
>anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
>Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
>Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
>
>
>
>===
>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.
===
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.