Exemple #1
0
 def testFromKerberosDefaultCCacheName(self):
     ccache = kctx.get_default_ccache(self.context)
     default_cc_name = '/tmp/krb5cc_%d' % os.getuid()
     self.assertTrue(ccache.name.endswith(default_cc_name))
Exemple #2
0
 def testFromEnvironmentVariable(self):
     os.environ['KRB5CCNAME'] = config.user_ccache_file
     ccache = kctx.get_default_ccache(self.context)
     del os.environ['KRB5CCNAME']
     self.assertEqual(ccache.name, config.user_ccache_file)