gnu 的radius服务器很好用的
源代码在线查看: microsoft
# # Microsoft VSA's, from RFC 2548 # BEGIN VENDOR Microsoft 311 ATTRIBUTE MS-CHAP-Response 1 string []b ATTRIBUTE MS-CHAP-Error 2 string ATTRIBUTE MS-CHAP-CPW-1 3 string []b ATTRIBUTE MS-CHAP-CPW-2 4 string []b ATTRIBUTE MS-CHAP-LM-Enc-PW 5 string []b ATTRIBUTE MS-CHAP-NT-Enc-PW 6 string []b ATTRIBUTE MS-MPPE-Encryption-Policy 7 string []b ATTRIBUTE MS-MPPE-Encryption-Type 8 string []b ALIAS MS-MPPE-Encryption-Type MS-MPPE-Encryption-Types ATTRIBUTE MS-RAS-Vendor 9 integer ATTRIBUTE MS-CHAP-Domain 10 string ATTRIBUTE MS-CHAP-Challenge 11 string []b ATTRIBUTE MS-CHAP-MPPE-Keys 12 string []bE ATTRIBUTE MS-BAP-Usage 13 integer ATTRIBUTE MS-Link-Utilization-Threshold 14 integer # values are 1-100 ATTRIBUTE MS-Link-Drop-Time-Limit 15 integer # FIXME: These two are encrypted (T encryption?) ATTRIBUTE MS-MPPE-Send-Key 16 string []b ATTRIBUTE MS-MPPE-Recv-Key 17 string []b ATTRIBUTE MS-RAS-Version 18 string ATTRIBUTE MS-Old-ARAP-Password 19 string []b ATTRIBUTE MS-New-ARAP-Password 20 string []b ATTRIBUTE MS-ARAP-PW-Change-Reason 21 integer ATTRIBUTE MS-Filter 22 string []b ATTRIBUTE MS-Acct-Auth-Type 23 integer ATTRIBUTE MS-Acct-EAP-Type 24 integer ATTRIBUTE MS-CHAP2-Response 25 string []b ATTRIBUTE MS-CHAP2-Success 26 string []b ATTRIBUTE MS-CHAP2-CPW 27 string []b ATTRIBUTE MS-Primary-DNS-Server 28 integer ATTRIBUTE MS-Secondary-DNS-Server 29 integer ATTRIBUTE MS-Primary-NBNS-Server 30 integer ATTRIBUTE MS-Secondary-NBNS-Server 31 integer # MS-BAP-Usage Values VALUE MS-BAP-Usage Not-Allowed 0 VALUE MS-BAP-Usage Allowed 1 VALUE MS-BAP-Usage Required 2 # MS-ARAP-Password-Change-Reason Values VALUE MS-ARAP-PW-Change-Reason Just-Change-Password 1 VALUE MS-ARAP-PW-Change-Reason Expired-Password 2 VALUE MS-ARAP-PW-Change-Reason Admin-Requires-Password-Change 3 VALUE MS-ARAP-PW-Change-Reason Password-Too-Short 4 # MS-Acct-Auth-Type Values VALUE MS-Acct-Auth-Type PAP 1 VALUE MS-Acct-Auth-Type CHAP 2 VALUE MS-Acct-Auth-Type MS-CHAP-1 3 VALUE MS-Acct-Auth-Type MS-CHAP-2 4 VALUE MS-Acct-Auth-Type EAP 5 # MS-Acct-EAP-Type Values VALUE MS-Acct-EAP-Type MD5 4 VALUE MS-Acct-EAP-Type OTP 5 VALUE MS-Acct-EAP-Type Generic-Token-Card 6 VALUE MS-Acct-EAP-Type TLS 13 END