Unlang / Username modification

Alan DeKok aland at deployingradius.com
Tue Nov 25 14:50:33 CET 2008


Nemec Christopher wrote:
> However I am stuck with these two tasks:
> 
> a) Append the "office" prefix to the username (since we are lazy and do
> not want to type in the domain name when we log on to one of our switches)
> 
> b) proxy the request to the AD

  That should be easy.

> I have placed the following lines of code in the radiusd.conf file:
> 
> if (User-Name="nemec") {
>         %{User-Name}:=office\nemec
>         Proxy-To-Realm := "office"
> }
> 
> However they are not being executed. Do they need to be at the top of
> the file? Is the syntax correct?

  No.

  PLEASE read the documentation.  In this case, "man unlang".

  Alan DeKok.



More information about the Freeradius-Users mailing list