From: Greg Hudson Date: Mon, 21 Oct 2019 17:56:55 +0000 (-0400) Subject: Fix t_otp.py for pyrad 2.2 X-Git-Tag: krb5-1.18-beta1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F991%2Fhead;p=thirdparty%2Fkrb5.git Fix t_otp.py for pyrad 2.2 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 --- diff --git a/src/tests/t_otp.py b/src/tests/t_otp.py index 74065417fe..cba871a0f2 100755 --- a/src/tests/t_otp.py +++ b/src/tests/t_otp.py @@ -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 '''