[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

14.3.21 Replace-User-Name

 
ATTRIBUTE Replace-User-Name 2001 string
Users: LR
Hints: LR
Huntgroups: --
Additivity: Append
Proxy propagated: No

 
VALUE      Replace-User-Name  No                   0       
VALUE      Replace-User-Name  Yes                  1       

Use this attribute to modify the user name from the incoming packet. The Replace-User-Name can reference any attributes from both LHS and RHS pairlists using attribute macros (5.14 Macro Substitution).

For example, the `users' entry

 
guest   NAS-IP-Address = 11.10.10.11,
                Calling-Station-Id != ""
                Auth-Type = Accept
        Replace-User-Name = "guest#%C{Calling-Station-Id}",
                Service-Type = Framed-User,
                Framed-Protocol = PPP

allows the use of PPP service for user name guest, coming from NAS `11.10.10.11' with a nonempty Calling-Station-Id attribute. A string consisting of a `#' character followed by the Calling-Station-Id value is appended to the user name.



This document was generated by Sergey Poznyakoff on November, 20 2004 using texi2html