]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix k5test.py hostname canonicalization
authorGreg Hudson <ghudson@mit.edu>
Tue, 5 Jun 2012 04:48:37 +0000 (00:48 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 5 Jun 2012 04:48:37 +0000 (00:48 -0400)
commit5cf17e31800e032ad76366f38d28b2797cd595cc
tree65b268aa9346087ae6d83eafcc72bd24e42c05c1
parentcbfe4fd9cad2a63199b1eb62ea93f2e5c7678978
Fix k5test.py hostname canonicalization

r25844 (#7124) stopped using AI_ADDRCONFIG when canonicalizing
hostnames in sn2princ.  So we need to also stop using it in k5test.c's
_get_hostname() or we could come up with a different result on a
system where forward and reverse resolution via IPv4 and IPv6 produce
different results.  That in turn causes a t_gssapi.py test (the one
using the un-canonicalized hostname) to fail, because libkrb5 looks
for a different host principal than k5test.py put in the keytab.
src/util/k5test.py