summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-08-28 23:18:37 -0400
committerSimo Sorce <simo@redhat.com>2013-09-09 15:11:45 -0400
commita70e88f62e8ba48c5042b881f20ed6586cb135a8 (patch)
tree3fa1fa5b0f248268cedda1bf443bca0d10475835 /src/tests
parent04c49a183f49c28f9ef900bdbc4eb30f23278e17 (diff)
downloadsssd-a70e88f62e8ba48c5042b881f20ed6586cb135a8.tar.gz
sssd-a70e88f62e8ba48c5042b881f20ed6586cb135a8.tar.xz
sssd-a70e88f62e8ba48c5042b881f20ed6586cb135a8.zip
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
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/krb5_child-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index 24d077289..dff62ab64 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);