免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1530 | 回复: 1
打印 上一主题 下一主题

[网络配置] 求指点,谢谢。freeradius + mysql 实现802.1x认证 客户端认证失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-06-13 16:28 |只看该作者 |倒序浏览
各位大侠:

俺遇到一个问题,

CentOS搭建Freeradius + mysql 实现802.1x认证,通过windows自带的802.1x认证工具(即修改网卡,启用802.1x身份认证),使用MD5+质询  点击确定后,提示输入用户名密码,在输入凭据窗口中输入用户名和密码,点击确定,网络显示“网络已连接”,并正常获取到了IP地址,大概1秒钟左右,网络连接状态从“已连接上”立即变成“尝试身份验证“,接着网卡图标变成获取地址状态(一个光色的小球在转动),接着就一直处于身份验证失败。



在freeradius调试窗口显示认证成功,信息如下:

rad_recv: Access-Request packet from host 10.150.10.41 port 2740, id=0, length=192

        User-Name = "bob"

        CHAP-Password = 0x02ea1f176f0d518a40827e6144ef92eb67

        CHAP-Challenge = 0x5daf295da20c9f8f72f25656e49dbfb4

        NAS-IP-Address = 10.150.10.41

        NAS-Identifier = "JieRu"

        NAS-Port = 16781413

        NAS-Port-Id = "slot=1;subslot=0;port=1;vlanid=101"

        NAS-Port-Type = Ethernet

        Service-Type = Framed-User

        Framed-Protocol = PPP

        Calling-Station-Id = "D4-3D-7E-3D-35-63"

        Huawei-Connect-ID = 6225921

        Huawei-Product-ID = "H3C S5120-24P-EI-D"

        Huawei-Startup-Stamp = 956750404

......



Sending Access-Accept of id 0 to 10.150.10.41 port 2740

        Framed-Protocol = PPP

        Framed-Compression = Van-Jacobson-TCP-IP

        Reply-Message = "Hello Bob!"

        Tunnel-Medium-Type:0 = IEEE-802

        Tunnel-Type:0 = VLAN

        Tunnel-Private-Group-Id:0 = "1101"

Finished request 43.

Going to the next request



尝试采用802.1x客户端进行认证,但是新的问题出现

使用了 H3C的iNode 和xClient 均出现,radius收到的认证请求中,用户名字段的签名有一段”\006\007“开头的一串字符,而且每次的前缀都不一样,导致认证失败

rad_recv: Access-Request packet from host 10.150.10.41 port 2740, id=0, length=224

        User-Name = "\006\007SQsoN1Mmdzo7SU93bUYNM9SlPDY=  bob"

        CHAP-Password = 0x02bcf304be0529837426408b166107c3e5

        CHAP-Challenge = 0x443efcde846a18e2bbeec76bf8799cde

        NAS-IP-Address = 10.150.10.41

        NAS-Identifier = "JieRu"

        NAS-Port = 16781413

        NAS-Port-Id = "slot=1;subslot=0;port=1;vlanid=101"

        NAS-Port-Type = Ethernet

        Service-Type = Framed-User

        Framed-Protocol = PPP

        Calling-Station-Id = "D4-3D-7E-3D-35-63"

        Huawei-Connect-ID = 5963777

        Huawei-Product-ID = "H3C S5120-24P-EI-D"

        Huawei-Startup-Stamp = 956750404




求指点,谢谢。

论坛徽章:
0
2 [报告]
发表于 2015-06-13 16:37 |只看该作者
交换机(H3C S5120-EI-D ver5.20 R1513P15)配置如下:

radius scheme radius1
server-type extended
primary authentication 10.150.0.206
primary accounting 10.150.0.206
key authentication cipher $c$3$jcYVhNgnH5LLgZJjBwxFyUdLvkyFDQ==
key accounting cipher $c$3$4DYuIIq1hwwi4W5sTfEYS80nvR8tww==
user-name-format without-domain

dot1x


domain test
authentication lan-access radius-scheme radius1 local
authorization lan-access radius-scheme radius1 local
accounting lan-access radius-scheme radius1 local
access-limit disable
state active
idle-cut disable
self-service-url disable

interface GigabitEthernet1/0/1
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 101 to 110 1001 to 1023 1101 to 1123 untagged
port hybrid pvid vlan 101
mac-vlan enable
dot1x

1x认证服务器改为 H3C IMC 是则正常
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP