]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Disable the gssrpc expired-cred test
authorGreg Hudson <ghudson@mit.edu>
Wed, 1 May 2013 19:52:40 +0000 (15:52 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 1 May 2013 21:18:45 +0000 (17:18 -0400)
The "expired" test in expire.exp tries to authenticate to the server
process with an expired TGT (obtained using kinit -l -1m).  Using an
expired TGT to get an expired service cred no longer works after
#6948.  We could use kinit -S to get an expired service cred, but
krb5_get_credentials won't return expired service cred from the cache
(even before #6948).  We could use time offsets to simulate clock skew
between the client and server process, but that would be difficult
because the test programs don't have access to the krb5_context
objects used by the client or server process.  Since we don't have a
simple workaround, disable the test.

src/lib/rpc/unit-test/rpc_test.0/expire.exp

index ab3796554e93eb9fe4c4518583da58591e7cbe52..e19cca0ef6138ada72ce5b1f1d53de797a6d52be 100644 (file)
@@ -19,8 +19,9 @@ proc expired {} {
     flush_server
 }
 
-#if { [info exists server_pid] && ($server_pid >= 0) } { expired }
-if { $server_started } {expired } 
+# This test doesn't work after #6948, because the client won't try to
+# authenticate using an expired TGT.
+#if { $server_started } {expired }
 
 proc overlap {} {
     global spawn_id