problem with User-Name & Stripped-User-Name

Tony Peña emperor.cu at gmail.com
Wed Aug 1 19:07:33 CEST 2012


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.. the stripped-user-name properly. if i use user-name. i can see in
freeradiusd -X the username to can do account into mysql... but in my
system i use hints too.. so when i auth with user at domain.. in mysql insert
user at domain.. if i use stripped-user-name.. in mysql just insert username
as i need.... BUT not happend.. username stay in blank :| i change
something in somewhere because before works.. but right now don't know what
i change in .confs :S any idea?

check some lines in debug mode:

User-Name = "emperor" radius packet, ..

in radiusd -X  using just username without Hints

[radutmp]       expand: %{User-Name} -> emperor
[radutmp]       expand: %{Stripped-User-Name:-%{User-Name}} -> emperor,

and sql module ->
[sql] Improperly nested variable; %{User-Name}}
[sql]   expand: %{%{Stripped-User-Name}:-%{%{User-Name}}:-DEFAULT} -> ''

Using Hints at my.domain.com

User-Name = "emperor at my.domain.com"
[suffix] No '@' in User-Name = "emperor", looking up realm NULL

why not see the @ realm for check hint?

my hints conf
DEFAULT Suffix == "@my.domain.com", Strip-User-Name = Yes
        Hint = "userdefault",
        Service-Type = Framed-User,
        Framed-Protocol = PPP,

in my auth seccion i type suffix to can check it.

with just emperor, at sql not insert emperor just blank and with realm @
my.domain.com insert emperor into sql...
should be works.. in both case ...... insert emperor. to can checkval
mountlycounter for both case the acct-session-time.

if need more conf files to can help please i can send more info..

thanxs for all

-- 
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



-- 
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/ed713c7f/attachment.html>


More information about the Freeradius-Users mailing list