27 Jul
2005
27 Jul
'05
9:27 a.m.
Erling Paulsen wrote:
Is it possible to have the stripped username stored somewhere, even if I set 'nostrip' for a realm in proxy.conf?
You can create the attribute Stripped-User-Name with an other module than rlm_realm. For example, you could have in radiusd.conf: modules { attr_rewrite copy.user-name { attribute = Stripped-User-Name new_attribute = yes searchin = packet searchfor = "" replacewith = "%{User-Name}" } attr_rewrite strip.user-name { attribute = Stripped-User-Name new_attribute = no searchin = packet searchfor = "@.*$" replacewith = "" max_matches = 1 } ... } authorize { copy.user-name strip.user-name ... } -- Nicolas Baradakis