problem with User-Name & Stripped-User-Name
Tony Peña
emperor.cu at gmail.com
Wed Aug 1 19:51:13 CEST 2012
2012/8/1 Alan DeKok <aland at deployingradius.com>
> Tony Peña wrote:
> > hi, i'm trying to migrate freeradius 1.3.1 to 2.1.12. 1.3.1 works very
> > fine but I need upgrades
> >
> > and my freeradius server auth in ldap and accounting on mysql.. and the
> > new file configuration have a little change for me.. all fine but not
> > work for me..
>
> It would be useful to use complete sentences. It shows you're trying
> to communicate what's going on, rather than just dumping random
> collections of text into an email.
>
> > and sql module ->
> > [sql] Improperly nested variable; %{User-Name}}
>
> What part of that is unclear?
>
> > [sql] expand: %{%{Stripped-User-Name}:-%{%{User-Name}}:-DEFAULT} -> ''
>
> That is wrong. See "man unlang" for how expansions are handled.
>
> What do you expect this to do: %{%{User-Name}} ?? Why did you enter
> that?
>
> i use that because in that way explain in line 25 of sql/mysql/dialup.conf
20 # Uncomment the next line, if you want the sql_user_name to mean:
21 #
22 # Use Stripped-User-Name, if it's there.
23 # Else use User-Name, if it's there,
24 # Else use hard-coded string "DEFAULT" as the user name.
25 sql_user_name = "%{%{Stripped-User-Name}:-%{%{User-Name}}:-DEFAULT}"
26 #
27 #sql_user_name = "%{User-Name}"
> Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
--
Antonio Peña
Secure email with PGP 0x8B021001 available at http://pgp.mit.edu
Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120801/2f4801b2/attachment-0001.html>
More information about the Freeradius-Users
mailing list