]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix t_otp.py for pyrad 2.2 991/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 21 Oct 2019 17:56:55 +0000 (13:56 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 21 Oct 2019 17:56:55 +0000 (13:56 -0400)
pyrad 2.2 throws a KeyError exception in DecodePacket if any
attributes from the packet are not defined in the dictionary.  Add a
dictionary entry for Service-Type so this doesn't happen.

ticket: 8841 (new)
tags: pullup
target_version: 1.17-next
target_version: 1.16-next

src/tests/t_otp.py

index 74065417fee938ed9b1febcc3300061e080acb7f..cba871a0f2a2f349857e8c0d2dd325ea63659a4f 100755 (executable)
@@ -47,6 +47,7 @@ except ImportError:
 radius_attributes = '''
 ATTRIBUTE    User-Name    1    string
 ATTRIBUTE    User-Password   2    octets
+ATTRIBUTE    Service-Type    6    integer
 ATTRIBUTE    NAS-Identifier  32    string
 '''