1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r20536: In the offline PAM session close case the attempt to delete a

non-existing krb5 credential cache should not generate an error.

Guenther
(This used to be commit 11c6f573af)
This commit is contained in:
Günther Deschner 2007-01-04 23:41:16 +00:00 committed by Gerald (Jerry) Carter
parent b1fed47440
commit f3a85fb152
2 changed files with 7 additions and 1 deletions

View File

@ -56,6 +56,8 @@ static const struct {
#if defined(KRB5KRB_ERR_RESPONSE_TOO_BIG)
{KRB5KRB_ERR_RESPONSE_TOO_BIG, NT_STATUS_PROTOCOL_UNREACHABLE},
#endif
{KRB5_CC_NOTFOUND, NT_STATUS_NO_SUCH_FILE},
{KRB5_FCC_NOFILE, NT_STATUS_NO_SUCH_FILE},
{KRB5KDC_ERR_NONE, NT_STATUS_OK},
{0, NT_STATUS_OK}
};

View File

@ -419,7 +419,11 @@ NTSTATUS remove_ccache(const char *username)
#ifdef HAVE_KRB5
ret = ads_kdestroy(entry->ccname);
if (ret) {
/* we ignore the error when there has been no credential cache */
if (ret == KRB5_FCC_NOFILE) {
ret = 0;
} else if (ret) {
DEBUG(0,("remove_ccache: failed to destroy user krb5 ccache %s with: %s\n",
entry->ccname, error_message(ret)));
} else {