Using username at example.com and plain username

Phil Mayers p.mayers at imperial.ac.uk
Wed Sep 19 11:41:02 CEST 2012


On 09/18/2012 10:22 PM, Kriston wrote:
> I have users who log in as "username at example.com" and just as "username".
> How do I append @example.com only to those users who don't have @example.com
> already?  I have a fairly generic FreeRADIUS 2.1.10 installation that
> connects to a MySQL server.
>
> I've tried a number of different things in dialup.conf but none have worked.
>
> Example 1:
> sql_user_name = "{%{Stripped-User-Name}:-%{User-Name}}@{%{Realm}:-example.com}"

You're missing a couple of leading "%" there. Look carefully.

Specifically, right after the opening quote, and right after the @ sign.


More information about the Freeradius-Users mailing list