default realm issue

2003-07-12 Thread radius
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


Re: default realm issue

2003-07-12 Thread Rob Hartzenberg
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


Realm issue

2002-12-05 Thread LoKoRadius
Hi All,

 I'm using XtRadius and I have 2 realms Localy, but I have to check in diferent databases. 

/etc/realms
alf.com LOCAL
alf.com.br LOCAL

How can I identify in user file?

alf.com.br Auth-Type = External
 Exec-Program-Wait = "/usr/lib/cgi-bin/autenticaBR.pl %u %w",
 Fall-Through = 0

alf.com Auth-Type = External
 Exec-Program-Wait = "/usr/lib/cgi-bin/autenticaUS.pl %u %w",
 Fall-Through = 0


Thank you