19 Sep
2012
19 Sep
'12
5:41 a.m.
On 09/18/2012 10:22 PM, Kriston wrote:
I have users who log in as "username@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.