Bug 1646700

Summary: krb5_cc_retrieve_cred returned KRB5_CC_NOTFOUND with krb5-libs-1.17-0.beta1.1.fc30
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: krb5Assignee: Robbie Harwood <rharwood>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, jhrozek, j, nalin, npmccallum, rharwood, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-12 18:56:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Simplifield reproducer from sssd unit test none

Description Lukas Slebodnik 2018-11-05 21:07:17 UTC
Created attachment 1502218 [details]
Simplifield reproducer from sssd unit test

Description of problem:
There is a unit test in sssd which test sssd internal function copy_ccache_into_memory. And the recent update of krb5 in rawhide broke it.

Version-Release number of selected component (if applicable):
sh$ rpm -q krb5-libs
krb5-libs-1.17-0.beta1.1.fc30.x86_64

How reproducible:
Deterministic

Steps to Reproduce:
1. dnf install -y gcc krb5-devel libcmocka-devel libtalloc-devel
2. gcc -Wall -Wextra -g3 -O2 -o test_copy_ccache test_copy_ccache.c -lcmocka -ltalloc -lkrb5
3. ./test_copy_ccache

Actual results:
sh# ./test_copy_ccache
[==========] Running 1 test(s).
[ RUN      ] test_copy_ccache
[  ERROR   ] --- 0xffffffff96c73a8d != 0
[   LINE   ] --- test_copy_ccache.c:174: error: Failure!
[  FAILED  ] test_copy_ccache
[==========] 1 test(s) run.
[  PASSED  ] 0 test(s).
[  FAILED  ] 1 test(s), listed below:
[  FAILED  ] test_copy_ccache

 1 FAILED TEST(S)

sh# rpm -q krb5-libs
krb5-libs-1.17-0.beta1.1.fc30.x86_64

Expected results:
//test should pass as with older version.
sh$ ./test_copy_ccache 
[==========] Running 1 test(s).
[ RUN      ] test_copy_ccache
[       OK ] test_copy_ccache
[==========] 1 test(s) run.
[  PASSED  ] 1 test(s).
sh$ rpm -q krb5-libs
krb5-libs-1.16.1-24.fc30.x86_64

Additional info:

Comment 1 Lukas Slebodnik 2018-11-06 11:09:21 UTC
*** Bug 1646919 has been marked as a duplicate of this bug. ***

Comment 2 Robbie Harwood 2018-11-12 18:56:06 UTC

*** This bug has been marked as a duplicate of bug 1645912 ***