- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
安全协议复习考试修订版
PAP验证
用户以明文的形式把用户名和口令传递给NAS。
NAS把用户名和加密过的口令放到包的相应属性中传递给RADIUS服务器。
RADIUS服务器返回结果。
NAS来决定是否允许用户上网。
把口令加密
passwd XOR md5(S||RA)
S是共享秘密,RA是一次性随机值
PAP:an Access-Request UDP packet
The Request Authenticator is a 16 octet random number generated by the NAS. The User-Password is 16 octets of password padded at end with nulls,XORed with MD5(shared secret|Request Authenticator).
01 00 00 38 0f 40 3f 94 73 97 80 57 bd 83 d5 cb
98 f4 22 7a 01 06 6e 65 6d 6f 02 12 0d be 70 8d
93 d4 13 ce 31 96 e4 3f 78 2a 0a ee 04 06 c0 a8
01 10 05 06 00 00 00 03
1 Code = Access-Request (1)
1 ID = 0
2 Length = 56
16 Request Authenticator
Attributes:
6 User-Name = nemo
18 User-Password
6 NAS-IP-Address = 6
6 NAS-Port = 3
PAP:an Access-Accept UDP packet
The Response Authenticator is a 16-octet MD5 checksum of the code(2), id (0), Length (38), the Request Authenticator from above, the attributes in this reply, and the shared secret.
02 00 00 26 86 fe 22 0e 76 24 ba 2a 10 05 f6 bf
9b 55 e0 b2 06 06 00 00 00 01 0f 06 00 00 00 00
0e 06 c0 a8 01 03
1 Code = Access-Accept (2)
1 ID = 0 (same as in Access-Request)
2 Length = 38
16 Response Authenticator
Attributes:
6 Service-Type (6) = Login (1)
6 Login-Service (15) = Telnet (0)
6 Login-IP-Host (14) =
CHAP: Challenge and Response
The Response Value is the one-way hash calculated over a stream of octets consisting of the Identifier, followed by (concatenated with) the secret, followed by (concatenated with) the Challenge Value. The length of the Response Value depends upon the hash algorithm used (16 octets for MD5).
||
当用户请求上网时,NAS产生一个16字节的随机码给用户。
用户端得到这个包后使用MD5生成一个response传给NAS(还有ID/username等信息)。
NAS把传回来的username和ID/Response作为用户名和口令,并把原来的16字节随机码传给RADIUS服务器。
RADIUS根据用户名在服务器端查找数据库,得到和用户端进行加密所用的一样的密码,然后根据传来的16字节的随机码进行加密,将其结果与传来的Password作比较,如果相同表明验证通过,如果不相同表明验证失败。
另外如果验证成功,RADIUS服务器同样可以生成一个16字节的随机码对用户进行询问(Challenge)。
Pam由四部分组成
第一部分是libpam,是实现PAM API的库,
第二部分是PAM配置文件,/etc/pam.conf,
第三部分有一套动态可装载两进
您可能关注的文档
- 复习考试考试习题电功和电功率.doc
- 外出旅游安全优秀教案.doc
- 外国文学复习考试知识点.doc
- 外国文学期末复习考试集锦.doc
- 多元统计基本概念复习考试.doc
- 多媒体会议室技术方案新.doc
- 多媒体数字公告系统解决技术方案.doc
- 多氟多公司太极拳协会策划技术方案书.doc
- 多媒体讲台标准技术方案.doc
- 大学团总支·社团联合会纳新技术方案.doc
- 英语人教PEP版八年级(上册)Unit4+writing+写作.pptx
- 人美版美术四年级(上册)8 笔的世界 课件 (1).pptx
- 人美版美术七年级(上册)龙的制作.pptx
- 英语人教PEP版六年级(上册)Unit 2 第一课时.pptx
- 数学苏教版三年级(上册)3.3 长方形和正方形周长的计算 苏教版(共12张PPT).pptx
- 音乐人教版八年级(上册)青春舞曲 课件2.pptx
- 音乐人教版四年级(上册) 第一单元 音乐知识 附点四分音符|人教版.pptx
- 英语人教PEP版四年级(上册)Unit 6 Part B let's learn 1.pptx
- 道德与法治人教版二年级(上册)课件-3.11大家排好队部编版(共18张PPT).pptx
- 人美版美术七年级(上册)《黄山天下奇》课件1.pptx
文档评论(0)