Hello,

I'm having a bit of trouble matching attribute values in the users config file. I'm running freeradius 1.0.2. I have several DEFAULT entries starting with a series of checks. The problem is, on the last DEFAULT entry the attribute gets added regardless of whether the match is true or not. Following is the users file. redirectPort80 is an attribute tied to an ldap attribute through the ldap_attrs file.

# requests from the nas for tollfree users dialing up
DEFAULT Autz-Type := Tollfree, Called-Station-ID == "9999999999"
       Port-Limit = 1,
       Idle-Timeout = 900,
       Framed-Protocol = PPP,
       Service-Type = Framed-User,
       Fall-Through = yes

# requests from the nas for regular (not tollfree) users dialing up
DEFAULT Autz-Type := NoTollfree
       Port-Limit = 1,
       Idle-Timeout = 1800,
       Framed-Protocol = PPP,
       Service-Type = Framed-User,
       Fall-Through = yes

DEFAULT redirectPort80 == true
       Framed-Route = "10.32.0.5"

Then I use radclient to test the file. When I send a request with radclient that has no redirectPort80 attribute at all, Framed-Route is still added. The really weird thing is, when I change that line in the users file to "redirectPort80 == false" while issuing the same radclient command Framed-Route is STILL added proving that the check isn't being used at all. It seems to be simply adding the Framed-Route attribute every time.

Does anyone have any ideas? This is really baffling to me.

Thanks in advance,

Chris Carver

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

Reply via email to