help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnu-radius] Rewrite Nas-Identifier


From: Morten Winther
Subject: Re: [Help-gnu-radius] Rewrite Nas-Identifier
Date: Wed, 04 Aug 2004 16:56:37 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421

Morten Winther wrote:

Maybe I can rewite requests and copy the NAS-Identifier to NAS-Identifier-ORIG and then use that attrib locally.

Have some problems:

Aug 04 16:51:42 Main.error: /usr/local/etc/raddb/rewrite:4: unknown attribute NAS-Identifier-Orig
Aug 04 16:51:42 Main.error: /usr/local/etc/raddb/rewrite:4: parse error

How can I add this attribute so I can use it?


rewite:

integer
cp_ident()
{
        %[NAS-Identifier-Orig] = %[NAS-Identifier];
        return 0;
}


hints:

DEFAULT Rewrite-Function = "cp_ident"        NULL

DEFAULT Prefix = "hot/", Strip-User-Name = Yes
        Replace-User-Name = "address@hidden",
        NAS-Identifier = "=\"hsl_\" + %[NAS-Identifier]"



--
Best regards

Morten Winther
System & Application Architect




reply via email to

[Prev in Thread] Current Thread [Next in Thread]