Hi,

Answer my own question.
My problem is I set the sql in section authorize of radiusd.conf before the
sufix!
Like you can see bellow:

authorize {
        sql
        #
        # The preprocess module takes care of sanitizing some bizarre
        # attributes in the request, and turning them into attributes
        # which are more standard.
        #
        # It takes care of processing the 'raddb/hints' and the
        # 'raddb/huntgroups' files.
        #
        # It also adds a Client-IP-Address attribute to the request.
        #
        preprocess

        #
        # The chap module will set 'Auth-Type := CHAP' if we are
        # handling a CHAP request and Auth-Type has not already been set
        #
#       chap

#       counter
#       attr_filter
#       eap
        suffix
        files
#       etc_smbpasswd

        #
        #  Uncomment 'mschap' if the users are logging in with an
        #  MS-CHAP-Challenge attribute for authentication.  The mschap
        #  module will find the MS-CHAP-Challenge attribute, and add
        #  'Auth-Type := MS-CHAP' to the request, which makes it use
        #  the mschap module for authentication.
        #
#       mschap

# The ldap module will set Auth-Type to LDAP if it has not already been set
#       ldap
}

I just put the sql module at the end of the section and it works!!

Thanks all.

Alberto

----- Original Message -----
From: "Alberto Pereira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 10:30 AM
Subject: Stripped-User-Name


Hi,

I use freeradius.0.7.1with anthentication and billing in mysql.
In sql.conf i put this variable:
sql_user_name = "%{Stripped-User-Name:-%{User-Name:-none}}"

But when i try to authenticate with "[EMAIL PROTECTED]" it queries in mysql
for "[EMAIL PROTECTED]" and not only "login".

If I put in sql.conf
sql_user_name="%{Stripped-User-Name}"
It doesn�t work with "[EMAIL PROTECTED]" neither "login".

If I put in sql.conf
sql_user_name="%{User-Name}"
It doesn�t work with "[EMAIL PROTECTED]" but works with  "login" only.

Can Someone help me on this?

Regards,

Alberto


-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to