Hey,

I may be wrong on this, but I believe what you are looking for is in the
sql.conf file.
Inparticular the section dealing with Stripped-User-Name.

<snip sql.conf>

#######################################################################
        #  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}"
</snip>

HTH
-Rob

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 12, 2003 8:57 PM
Subject: default realm issue


> Hi,
>
> I store my user accounts in an SQL database using only their 'username'
> since my realm is always the same. Unfortunately FreeRadius tries to
> authenticate the whole address: [EMAIL PROTECTED] and thus fails. How can I
> tell it to strip the @domain.com part and only match the username ?
>
> I have set this in my radiusd.conf but it still doesn't work
>
> realm suffix {
>          format = prefix
>          delimiter = "@"
> }
>
>
>
>
>
>
>
> -
> 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