Hi! I try to use attr_rewrite and a little confused. From my radiusd.conf:
modules { ... attr_rewrite normalize_card { attribute = User-Name searchin = packet searchfor = ".{4}-([0-9]{8})-.{4}" replacewith = "%{1}" ignore_case = yes new_attribute = no max_matches = 1 append = no } ... } authorize { preprocess normalize_card ... } preacct { preprocess normalize_card ... } I'am trying to rewrite "xxxx-00000000-xxxx" to just "00000000" with radtest but got: Thu Mar 31 11:41:27 2005 : Auth: Login incorrect: [00000000-xxxx/12345678] (from client localhost port 0) Don't worry about "Login incorrect" it doesn't matter, look at username. It's "00000000-xxxx" instead of just "00000000". I can't undestand what's wrong? -- DSS5-RIPE DSS-RIPN 2:550/[EMAIL PROTECTED] 2:550/[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://neva.vlink.ru/~dsh/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html