From a70e88f62e8ba48c5042b881f20ed6586cb135a8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 28 Aug 2013 23:18:37 -0400 Subject: krb5: Use krb5_cc_destroy to remove old ccaches This completely replaces the per-ccache-type custom code to remove old cacches and instead uses libkrb5 base doperations (krb5_cc_destroy) and operating as the user owner. Resolves: https://fedorahosted.org/sssd/ticket/2061 --- src/tests/krb5_child-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/krb5_child-test.c') diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c index 24d07728..dff62ab6 100644 --- a/src/tests/krb5_child-test.c +++ b/src/tests/krb5_child-test.c @@ -561,7 +561,7 @@ done: if (rm_ccache && ctx->res && ctx->res->ccname && ctx->kr) { - ctx->kr->krb5_ctx->cc_be->remove(ctx->res->ccname); + sss_krb5_cc_destroy(ctx->res->ccname, ctx->kr->uid, ctx->kr->gid); } free(password); talloc_free(ctx); -- cgit