[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnu-radius] How to use rewrite function
From: |
sy sy |
Subject: |
[Help-gnu-radius] How to use rewrite function |
Date: |
Mon, 14 Jun 2004 00:42:27 -0700 (PDT) |
I define a test function in raddb/rewrite file as following:
integer test()
{
%[User-Name] = %[User-Name]+".ppp";
%[NAS-Port-Id] = 1;
return 0;
}
In file raddb/huntgroups I define as following:
DEFAULT NAS-IP-Addres = 192.168.0.1
Rewrite-Function = "test"
So requestes from NAS 192.168.0.1 will be rewrited ,attribute User-Name will be
changed and attribute NAS-Port-Id which is not presented in request will be set
to 1 .
But it is not work,Why ?
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger
- [Help-gnu-radius] How to use rewrite function,
sy sy <=