Using username at example.com and plain username
Fajar A. Nugraha
list at fajar.net
Wed Sep 19 06:50:48 CEST 2012
On Wed, Sep 19, 2012 at 9:52 AM, Kriston <me at kriston.net> wrote:
> This is what an online community is supposed to provide--help.
... at their own time, without receiving anything in return. So it
might help if you're asking nicely.
And of course you need to apply some logic to adapt it to your setup,
because the provided help/examples/snippet might not EXACTLY match
your setup. If you want something that just works, and EXACTLY fits
your needs, it might help to get someone experienced to do it for you.
>
> And, Mr. DeKok, a correction is in order: you did *not* provide a working
> example, in spite of the fact that you claim that you did.
I believe he did.
In dialup.conf:
"
#sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}"
and in unlang man page:
"
Conditional Syntax
Conditional syntax similar to that used in Unix shells may also be used.
%{%{Foo}:-bar}
"
Note the "%" in front? In your post:
sql_user_name = "{%{Stripped-User-Name}:-%{User-Name}}@{%{Realm}:-example.com}"
It's not EXACTLY the same, but close enough. If it's not a typo, then
I believe you're missing two "%": One in front, one also after "@".
--
Fajar
More information about the Freeradius-Users
mailing list