Set explicit length for MS-CHAP-MPPE-Key
authorAlan T. DeKok <aland@freeradius.org>
Mon, 14 Sep 2015 12:50:00 +0000 (08:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 14 Sep 2015 12:50:00 +0000 (08:50 -0400)
Because it's encrypted with the same method as User-Password,
BUT it contains binary data.  So it may have embedded zeros.
Which means the decoder needs to make it a fixed length,
instead of looking for zeros

share/dictionary.microsoft

index 87c54ef..18d3abc 100644 (file)
@@ -32,7 +32,7 @@ VALUE MS-MPPE-Encryption-Types        RC4-40or128-bit-Allowed 6
 ATTRIBUTE      MS-RAS-Vendor                           9       integer # content is Vendor-ID
 ATTRIBUTE      MS-CHAP-Domain                          10      string
 ATTRIBUTE      MS-CHAP-Challenge                       11      octets
-ATTRIBUTE      MS-CHAP-MPPE-Keys                       12      octets  encrypt=1
+ATTRIBUTE      MS-CHAP-MPPE-Keys                       12      octets[24]  encrypt=1
 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