]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix OTP tests with pyrad 2.x
authorGreg Hudson <ghudson@mit.edu>
Mon, 22 Dec 2014 23:37:36 +0000 (18:37 -0500)
committerTom Yu <tlyu@mit.edu>
Tue, 10 Feb 2015 02:43:29 +0000 (21:43 -0500)
Declare User-Password as having type "octets" instead of "string" or
pyrad 2.x will throw a decoding error when retrieving it.

(cherry picked from commit 57dc24093015d292189ef23313ef8ff2a81431e4)

ticket: 8128 (new)
version_fixed: 1.12.3
status: resolved

src/tests/t_otp.py

index 0aeb692e46dabae4fb6715b77150e41d30f2f198..2a8081f6864ca060e595ca834d023c2368029d4b 100644 (file)
@@ -49,7 +49,7 @@ class RadiusDaemon(Process):
     # such few attributes, we'll just include them here
     DICTIONARY = dictionary.Dictionary(StringIO.StringIO("""
 ATTRIBUTE    User-Name    1    string
-ATTRIBUTE    User-Password   2    string
+ATTRIBUTE    User-Password   2    octets
 ATTRIBUTE    NAS-Identifier  32    string
 """))