暂无评论
现象:RADIUS 服务器只支持 PAP,不支持 CHAP/MSCHAP。 关键点:
pap;⚠️默认 V7 的 RADIUS 方案优先 CHAP;如果 RADIUS 只支持 PAP,不强制指定 PAP,会出现账号密码正确,但认证直接拒绝。
system‑view
#1、配置RADIUS方案,强制PAP认证(核心命令)
radius scheme RADIUS‑PORTAL
primary authentication 192.168.1.10 1812 #RADIUS服务器IP,认证端口
primary accounting 192.168.1.10 1813 #计费端口
key authentication simple H3C@123456 #认证密钥,和RADIUS服务器一致
key accounting simple H3C@123456
#强制使用PAP,关闭CHAP优先,只发送PAP报文
authentication‑method pap
accounting optional
quit
#2、配置ISP域,调用上面RADIUS方案
domain Portal‑Domain
authentication portal radius‑scheme RADIUS‑PORTAL
authorization portal radius‑scheme RADIUS‑PORTAL
accounting portal radius‑scheme RADIUS‑PORTAL
quit
#3、创建Portal模板,指定认证模式PAP,绑定ISP域
portal web‑server portal
portal authentication‑type pap #【重点】Portal认证报文使用PAP
portal domain Portal‑Domain
#如果是远程Portal(iMC)需要配置web‑server地址;本地Portal不需要
#portal web‑server url http://192.168.1.10:8080/portal
#4、无线服务模板绑定Portal
wlan service‑template 1 crypto
ssid WIFI‑PORTAL
security‑ie rsn
wpa‑psk pass‑phrase simple 12345678
portal enable
portal apply web‑server portal
service‑template enable
quit
#5、AP组射频下绑定服务模板
wlan ap‑group default‑group
radio 1
service‑template 1
radio enable
radio 2
service‑template 1
radio enable
quit
save force
authentication‑method pap作用:AC 向 RADIUS 服务器发送认证报文时使用 PAP 密码明文封装。
portal authentication‑type pap作用:Portal 模块提取用户账号密码之后,以 PAP 方式送给 RADIUS;如果不配置,默认是 chap。
#查看RADIUS方案配置,确认认证方法是PAP
display radius scheme RADIUS‑PORTAL
#查看Portal模板信息,确认authentication‑type为pap
display portal web‑server name portal
#看认证失败日志,调试(故障定位)
debugging radius packet
debugging portal all
terminal debugging
terminal monitor
authentication‑method pap,AC 发 CHAP 报文,服务器不识别;portal authentication‑type pap,该命令只在 portal web‑server 视图下。
补充:iMC 对接的时候,如果 iMC 只开启 PAP,AC 两边都强制 PAP,不要混用 CHAP。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论