]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix t_otp.py for pyrad 2.2
authorGreg Hudson <ghudson@mit.edu>
Mon, 21 Oct 2019 17:56:55 +0000 (13:56 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 9 Dec 2019 22:02:30 +0000 (17:02 -0500)
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.

(cherry picked from commit e60d01eb1686e112fba4743d4216ba61fec2bdc0)

ticket: 8841
version_fixed: 1.16.4

src/tests/t_otp.py

index 0544a21017c09d9d92f3f41bf8895eb6f0364a74..48b9a0a398f38f717e8540d7ad448bb29d102172 100755 (executable)
@@ -49,6 +49,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
 '''