Regex remove realm from username

Alex French alex at evilal.com
Sat Oct 11 00:00:34 CEST 2008


2008/10/10 Eric Martell <workoutexcite at yahoo.com>:
> Hi..
>   I searched thru the forums but not getting the right username after using
> regex.
> The request I am getting is : test at google.com and I need to strip everything
> after @ and pass the username as test.

Is there some reason you don't just create a local realm in proxy.conf
and use the 'strip' keyword?

realm google.com {
        type    =       radius
		authhost        = LOCAL
		accthost        = LOCAL
		strip
}


Thanks,

Alex



More information about the Freeradius-Users mailing list