Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/providers/krb5/krb5_keytab.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,17 @@ krb5_error_code copy_keytab_into_memory(TALLOC_CTX *mem_ctx, krb5_context kctx,
}
kerr = 0;
goto done;
}

if (faccessat(AT_FDCWD, sep+1, R_OK, AT_EACCESS) != 0) {
saved_errno = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
"keytab [%s] is not readable: [%d][%s].\n",
keytab_file, saved_errno, sss_strerror(saved_errno));
} else if ((strncmp(keytab_name, "DIR:", sizeof("DIR:") -1) == 0) ||
(strncmp(keytab_name, "FILE:", sizeof("FILE:") -1) == 0)) {
if (faccessat(AT_FDCWD, sep + 1, R_OK, AT_EACCESS) != 0) {
saved_errno = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
"keytab [%s] is not readable: [%d][%s].\n",
keytab_file, saved_errno, sss_strerror(saved_errno));

kerr = KRB5KRB_ERR_GENERIC;
goto done;
kerr = KRB5KRB_ERR_GENERIC;
goto done;
}
}

kerr = sss_krb5_kt_have_content(kctx, keytab);
Expand Down
Loading