Reject user without realm

This is a discussion on Reject user without realm within the FreeRADIUS Users forums, part of the Networking and Network Related category; Hi, I'm trying to use FreeRadius with Realms (using the form user@realm). Basically, if a user uses user@...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2007
Marcos Roberto Greiner
 
Posts: n/a
Default Reject user without realm

Hi,

I'm trying to use FreeRadius with Realms (using the form user@realm).
Basically, if a user uses user@provider1.com, I want Radius to
authenticate locally. If it's @provider2.com, 3.com, etc, on other
servers listed in proxy.conf.

The problem I'm having is that if a user adds no realm, only the user,
the server is autenticating locally. I wanted it to deny the
authentication. How should I proceed?

Thank you very much,

Roberto



My current setup and radius -X follows.

I'm using MySQL as database (both for users and accounting)

hints file. Added only the following entry:
# The following entry is to be authenticated locally
DEFAULT Suffix == "@domain1.com", Strip-User-Name = Yes
Hint = "PPP",
Service-Type = Framed-User,
Framed-Protocol = PPP

Users file. Commented the entry referencing to Auth-Type = System. No
other changes.

Nothing added to huntgroups

The radius -X output:

rad_recv: Access-Request packet from host a.b.c.d:3793, id=0, length=58
User-Name = "user@provider1.com"
User-Password = "user"
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
hints: Matched DEFAULT at 36
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "mschap" returns noop for request 0
rlm_realm: No '@' in User-Name = "user", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
users: Matched entry DEFAULT at line 172
modcall[authorize]: module "files" returns ok for request 0
radius_xlat: 'user'
rlm_sql (sql): sql_set_user escaped user --> 'user'
radius_xlat: 'SELECT id, UserName, Attribute, Value, op FROM
radcheck WHERE Username = 'user' ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 3
radius_xlat: 'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupc heck.Attribute,radgroupcheck.Value,radgroupcheck.o p
FROM radgroupcheck,usergroup WHERE usergroup.Username = 'user' AND
usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat: 'SELECT id, UserName, Attribute, Value, op FROM
radreply WHERE Username = 'user' ORDER BY id'
radius_xlat: 'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupr eply.Attribute,radgroupreply.Value,radgroupreply.o p
FROM radgroupreply,usergroup WHERE usergroup.Username = 'user' AND
usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql (sql): Released sql socket id: 3
modcall[authorize]: module "sql" returns ok for request 0
modcall[authorize]: module "pap" returns updated for request 0
modcall: leaving group authorize (returns updated) for request 0
rad_check_password: Found Auth-Type pap
auth: type "PAP"
Processing the authenticate section of radiusd.conf
modcall: entering group PAP for request 0
rlm_pap: login attempt with password user
rlm_pap: Using CRYPT encryption.
rlm_pap: User authenticated succesfully
modcall[authenticate]: module "pap" returns ok for request 0
modcall: leaving group PAP (returns ok) for request 0
Login OK: [user] (from client dsu24 port 0)
Sending Access-Accept of id 0 to a.b.c.d port 3793
Framed-IP-Address = 255.255.255.254
Framed-MTU = 576
Service-Type := Framed-User
Framed-Compression := Van-Jacobson-TCP-IP
Framed-Protocol := PPP
Session-Timeout := 7200
Finished request 0
Going to the next request






--
-----------------------------------------------------
Marcos Roberto Greiner

Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
Murphy
-----------------------------------------------------

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:51 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0