From: Stefan Metzmacher Date: Fri, 3 Apr 2020 13:27:45 +0000 (+0200) Subject: auth/credentials: Handle ENOENT when obtaining ccache lifetime X-Git-Tag: tdb-1.4.6~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce293eb861b2fc6c7a88cf67664c91735bf49d44;p=thirdparty%2Fsamba.git auth/credentials: Handle ENOENT when obtaining ccache lifetime The new Heimdal may return ENOENT instead of KRB5_CC_END. Signed-off-by: Stefan Metzmacher Reviewed-by: Joseph Sutton --- diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c index d2e7a76a69e..b4db5fc8fbd 100644 --- a/auth/credentials/credentials_krb5.c +++ b/auth/credentials/credentials_krb5.c @@ -686,7 +686,7 @@ _PUBLIC_ int cli_credentials_get_named_ccache(struct cli_credentials *cred, bool expired = false; ret = smb_krb5_cc_get_lifetime(cred->ccache->smb_krb5_context->krb5_context, cred->ccache->ccache, &lifetime); - if (ret == KRB5_CC_END) { + if (ret == KRB5_CC_END || ret == ENOENT) { /* If we have a particular ccache set, without * an initial ticket, then assume there is a * good reason */