stripping the realm
Ross
ross at rosslisa.net
Mon Jun 10 09:31:34 CEST 2013
Answer my own question, it's in the dialup.conf
root at chronos:~# vim /etc/freeradius/sql/mysql/dialup.conf
Uncomment this line;
sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}"
#######################################################################
# Query config: Username
#######################################################################
# This is the username that will get substituted, escaped, and added
# as attribute 'SQL-User-Name'. '%{SQL-User-Name}' should be used
below
# everywhere a username substitution is needed so you you can be
sure
# the username passed from the client is escaped properly.
#
# Uncomment the next line, if you want the sql_user_name to mean:
#
# Use Stripped-User-Name, if it's there.
# Else use User-Name, if it's there,
# Else use hard-coded string "DEFAULT" as the user name.
sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}}"
#
sql_user_name = "%{User-Name}"
Thanks me :)
On Mon, Jun 10, 2013 at 9:20 AM, Ross <ross at rosslisa.net> wrote:
>
> On 09/06/2013 11:01 PM, "Alan DeKok" <aland at deployingradius.com> wrote:
> >
> > geebs wrote:
> > > I don't recall having to setup a realm in previous installs.
> >
> > You always had to set up a realm in previous installs.
> >
> > Alan DeKok.
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> Ok, so where do I setup the realm and then strip the realm? I'm using
> mysql.
> Some assistance would be greatly appreciated :)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130610/02c81d7e/attachment.html>
More information about the Freeradius-Users
mailing list