- 论坛徽章:
- 0
|
小弟搭建了一套radius+mysql的认证环境,进行eap-md5验证,
但是不管客户端发送的用户名是什么radius得到的总是:User-Name = "\025\004"
以下是radiusd -X 时候打印的结果,很奇怪,是不是我的配置有问题??
客户端截包证明客户端没有问题。
请各位指教!!!
rad_recv: Access-Request packet from host 192.168.1.1:65474, id=13, length=106
User-Name = "\025\004"
NAS-Port-Type = Wireless-802.11
NAS-IP-Address = 192.168.1.1
Framed-MTU = 1400
State = 0x71c37a927721937df22ef09493641486
EAP-Message = 0x0202001a0410ee0c60f285703ba80e6448dbabe0ed0674657374
Message-Authenticator = 0xac2574c87e3704b2711eff04cde3a7d7
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 11
modcall[authorize]: module "preprocess" returns ok for request 11
modcall[authorize]: module "chap" returns noop for request 11
modcall[authorize]: module "mschap" returns noop for request 11
rlm_realm: No '@' in User-Name = "??", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 11
rlm_eap: EAP packet type response id 2 length 26
rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
modcall[authorize]: module "eap" returns updated for request 11
modcall[authorize]: module "files" returns notfound for request 11
radius_xlat: '\025\004'
rlm_sql (sql): sql_set_user escaped user --> '\025\004'
radius_xlat: 'SELECT id, UserName, Attribute, Value, op FROM radcheck WHERE Username =
'=5C=5C025=5C=5C004' ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 3
rlm_sql (sql): User \025\004 not found in radcheck
radius_xlat: 'SELECT radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op
FROM radgroupcheck,usergroup WHERE usergroup.Username = '=5C=5C025=5C=5C004' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat: 'SELECT radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op
FROM radgroupreply,usergroup WHERE usergroup.Username = '=5C=5C025=5C=5C004' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql (sql): User \025\004 not found in radgroupcheck
rlm_sql (sql): Released sql socket id: 3
rlm_sql (sql): User not found
modcall[authorize]: module "sql" returns notfound for request 11
rlm_pap: WARNING! No "known good" password found for the user. Authentication may fail because of this.
modcall[authorize]: module "pap" returns noop for request 11
modcall: leaving group authorize (returns updated) for request 11
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 11
rlm_eap: Request found, released from the list
rlm_eap: EAP/md5
rlm_eap: processing type md5
rlm_eap_md5: User-Password is required for EAP-MD5 authentication
rlm_eap: Handler failed in EAP/md5
rlm_eap: Failed in EAP select
modcall[authenticate]: module "eap" returns invalid for request 11
modcall: leaving group authenticate (returns invalid) for request 11
auth: Failed to validate the user.
Delaying request 11 for 1 seconds
Finished request 11
Going to the next request
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 10 ID 12 with timestamp 46dc1473
Sending Access-Reject of id 13 to 192.168.1.1 port 65474
EAP-Message = 0x04020004
Message-Authenticator = 0x00000000000000000000000000000000
Cleaning up request 11 ID 13 with timestamp 46dc1473
Nothing to do. Sleeping until we see a request. |
|