Filter attributes when proxying

2006-06-01 Thread Martin Zuziak
Hello all

Is it possible to (easily) remove single attributes sent or received
when proxying? I know it can be done with attr_filter but if you only
want to remove a single attribute while leaving the rest untouched, you
need pass rules for every other attribute.

It doesn't look like attr_rewrite can remove attributes. Am I wrong?

Otherwise I think this would be a nice feature to implement. The
attr_filter module can easily (I think) be changed to include a variable
to control whether or not passing rules are needed to allow an
attribute.

Currently attributes are only allowed if they don't fail any rules in
attrs and pass at least one rule:

if (fail == 0 && pass > 0)

This could be changed to something like
if (fail == 0 && (pass > 0 || allow_no_match))

where a variable in the attrs file could control if passing rules are
required.

Sincerely,

Martin Zuziak <[EMAIL PROTECTED]>

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Fwd: Filter attributes when proxying

2006-06-19 Thread Martin Zuziak
Hello all

I didn't get any response the first time I sent this so I'm trying
again.

Any chance of having such a feature implemented?

Sincerely,

Martin Zuziak <[EMAIL PROTECTED]>

PS: Don't worry, if I don't get any answer this time, I'll shut up :)

- Forwarded message from Martin Zuziak <[EMAIL PROTECTED]> -

Date: Thu, 1 Jun 2006 10:34:19 +0200
From: Martin Zuziak <[EMAIL PROTECTED]>
To: freeradius-users@lists.freeradius.org
Subject: Filter attributes when proxying

Hello all

Is it possible to (easily) remove single attributes sent or received
when proxying? I know it can be done with attr_filter but if you only
want to remove a single attribute while leaving the rest untouched, you
need pass rules for every other attribute.

It doesn't look like attr_rewrite can remove attributes. Am I wrong?

Otherwise I think this would be a nice feature to implement. The
attr_filter module can easily (I think) be changed to include a variable
to control whether or not passing rules are needed to allow an
attribute.

Currently attributes are only allowed if they don't fail any rules in
attrs and pass at least one rule:

if (fail == 0 && pass > 0)

This could be changed to something like
if (fail == 0 && (pass > 0 || allow_no_match))

where a variable in the attrs file could control if passing rules are
required.

Sincerely,

Martin Zuziak <[EMAIL PROTECTED]>

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

- End forwarded message -

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Fwd: Filter attributes when proxying

2006-06-20 Thread Martin Zuziak
On Mon, Jun 19, 2006 at 11:16:17AM -0400, Joe Maimon wrote:
> try to use rlm_policy
> I am sure there are other ways.

Thank you for your answer.

I hadn't seen the policy module. It only seems to be in CVS not in the
releases. Is there a reason for that? Is it not of production quality?

Sincerely,

Martin Zuziak <[EMAIL PROTECTED]>


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html