I am trying to setup a users file using prefix and suffix and can't seem to get it to recognize them. Authentication requests without a prefix or suffix are handled properly. However, when I use them it just ignores those entries in the users file and goes to the last DEFAULT entry. Excpept from the users file:

DEFAULT Prefix == "DUB+", Strip-User-Name = Yes, Auth-Type := System
Exec-Program-Wait = "/etc/raddb/local %u %n S %{Called-Station-Id}",
Idle-Timeout = 900


DEFAULT Suffix == "@lafn", Strip-User-Name = Yes, Auth-Type := System
Exec-Program-Wait = "/etc/raddb/local %u %n E %{Called-Station-Id}",
Idle-Timeout = 900


DEFAULT Auth-Type := System
Exec-Program-Wait = "/etc/raddb/local %u %n R %{Called-Station-Id}",
Idle-Timeout = 900



The debug output when using the suffix:


rad_lowerpair:  User-Name now '[EMAIL PROTECTED]'
rad_rmspace_pair:  User-Name now '[EMAIL PROTECTED]'
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
    users: Matched DEFAULT at 66
  modcall[authorize]: module "files" returns ok for request 0
modcall: group authorize returns ok for request 0


Line 66 is the last DEFAULT statement. I have made the hints file completely empty. Prefix and Suffix only appear in the users file. I have tried commenting out anything dealing with prefix or suffix in the radiusd.conf file which didn't seem to change anything.



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

Reply via email to