Hello folks
I have free radius 0.8.1 installed with mysql module. I have mysql3.23.49
installed aswell. Right now when I run radiusd, it does run with sql module.
When I try to connect by any user, the user does'nt get authenticated by
Mysql rather it goes to system file and tries to get authenticaed through
system file which I dont want. I need to get authentication done from Mysql.
I have added sql word in authorize and accouting section in radiusd.conf
file. I am abit confused about the authentication portion. Here is the
rejected log:
------------------------------
rad_recv: Access-Request packet from host 204.157.3.51:50590, id=168,
length=102
User-Name = [EMAIL PROTECTED]
User-Password ="test"
NAS-IP-Address = xxx.xxx.xxx.xxx
NAS-Port = 3376
Service-Type = Framed-User
Framed-Protocol = PPP
Called-Station-Id = "816xxxxxxx"
NAS-Port-Type = Async
modcall: entering group authorize
modcall[authorize]: module "preprocess" returns ok
rlm_chap: Could not find proper Chap-Password attribute in request
modcall[authorize]: module "chap" returns noop
modcall[authorize]: module "mschap" returns notfound
rlm_realm: Looking up realm test.comfor User-Name = "[EMAIL PROTECTED]"
rlm_realm: Found realm test.com
rlm_realm: Adding Stripped-User-Name = "test"
rlm_realm: Proxying request from user test to realm test.com
rlm_realm: Adding Realm = "test.com"
rlm_realm: Authentication realm is LOCAL.
rlm_realm: auth_port is not set. proxy cancelled
modcall[authorize]: module "suffix" returns noop
radius_xlat: '[EMAIL PROTECTED]'
rlm_sql (sql): sql_set_user escaped user --> '[EMAIL PROTECTED]'
radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE
Username = '[EMAIL PROTECTED]' ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 4
radius_xlat: 'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op FROM radgroupcheck,usergroup WHERE
usergroup.Username = '[EMAIL PROTECTED]' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radreply WHERE
Username = '[EMAIL PROTECTED]' ORDER BY id'
radius_xlat: 'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op FROM radgroupreply,usergroup WHERE
usergroup.Username = '[EMAIL PROTECTED]' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql (sql): Pairs do not match for user [[EMAIL PROTECTED]]
rlm_sql (sql): Released sql socket id: 4
modcall[authorize]: module "sql" returns notfound
users: Matched DEFAULT at 152
users: Matched DEFAULT at 171
users: Matched DEFAULT at 183
modcall[authorize]: module "files" returns ok
modcall: group authorize returns ok
rad_check_password: Found Auth-Type System
auth: type "System"
modcall: entering group authenticate
rlm_unix: [shohab]: invalid password
modcall[authenticate]: module "unix" returns reject
modcall: group authenticate returns reject
auth: Failed to validate the user.
Delaying request 0 for 1 seconds
Finished request 0
----------------------------------------------------------
Thanks alot in advance.
Shohab
785-830-0511 ext 5106
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html