Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add krb5_get_renewed_creds() and krb5_get_validated_creds() #40

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

steffen-kiess
Copy link
Contributor

No description provided.

Copy link
Owner

@jborean93 jborean93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, just wondering if there was a reason what krb5_get_validated_creds had not test. I'm afraid I'm not familiar with this API so not sure if there is any limitations there.

@steffen-kiess
Copy link
Contributor Author

I updated the PR to include a testcase for krb5_get_validated_creds(), and now the tests on MacOS seem to be failing.

From what I can see the problem is that:

(gdb) where
#0  0x00007ffff74c174b in krb5_realm_compare (context=context@entry=0x1054ad0, 
    princ1=princ1@entry=0x0, princ2=princ2@entry=0x1058960) at principal.c:1013
#1  0x00007ffff74c1782 in krb5_principal_compare (
    context=context@entry=0x1054ad0, princ1=0x0, princ2=0x1058960)
    at principal.c:991
#2  0x00007ffff74d1ca9 in krb5_get_validated_creds (context=0x1054ad0, 
    creds=creds@entry=0x7ffff761dd98, client=<optimized out>, 
    ccache=<optimized out>, service=service@entry=0x0) at verify_init.c:228
#3  0x00007ffff6adc9af in __pyx_pf_4krb5_10_creds_mit_get_validated_creds (
    __pyx_self=<optimized out>, __pyx_v_in_tkt_service=..., 
    __pyx_v_ccache=0x7ffff75bcbe0, __pyx_v_client=0x7ffff75c4200, 
    __pyx_v_context=0x7ffff773ae10) at src/krb5/_creds_mit.c:2670

So I'll change the PR to never include krb5_get_validated_creds with heimdal, even if it is available.

steffen-kiess pushed a commit to steffen-kiess/pykrb5 that referenced this pull request Mar 13, 2024
@jborean93
Copy link
Owner

So I'll change the PR to never include krb5_get_validated_creds with heimdal, even if it is available.

Makes sense, I probably prefer to favour the MIT implementation anyway.

@jborean93 jborean93 merged commit 81d823e into jborean93:main Mar 14, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants