[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnu-radius] Rewrite trouble
From: |
Morten Winther |
Subject: |
[Help-gnu-radius] Rewrite trouble |
Date: |
Thu, 05 Aug 2004 23:25:08 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421 |
Hello
I still have two problems with rewrite.
First problem:
I’m trying to change NAS-Identifier when requests match a huntgroup.
I’ve tried this:
Huntgroups:
CPHAIR NAS-IP-Address = 217.157.161.246, Rewrite-Function =
"set_cph" NULL
Rewrite (file loaded in config: load "/usr/local/etc/raddb/rewrite";)
integer
set_cph()
{
%[NAS-Identifier] = "CPHAIRTEST";
return 0;
}
Second problem
How can I copy NAS-Identifier to Orig-NAS-Identifier in this hint:
DEFAULT Prefix = "mwi/", Strip-User-Name = Yes
Replace-User-Name = "address@hidden",
Rewrite-Function = "cp_ident",
NAS-Identifier = "=\"mwi_\" + %[NAS-Identifier]",
Hint = "mwi"
--
Best regards
Morten Winther
- [Help-gnu-radius] Rewrite trouble,
Morten Winther <=