[38383] in Kerberos
Re: Query, Need help for building principal and retrieving service
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Nov 26 12:17:37 2018
To: Santosh Kumar <santoshjeergi@gmail.com>, kerberos@mit.edu
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <9816f700-18a5-6140-233c-0e6a418b7e4d@mit.edu>
Date: Mon, 26 Nov 2018 12:17:16 -0500
MIME-Version: 1.0
In-Reply-To: <CAFnsFFfJPsTW6XVgekR3h-sa2596ogp5i9JgtM1AdLm60ehtcg@mail.gmail.com>
Content-Language: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu
On 11/26/2018 06:30 AM, Santosh Kumar wrote:
> i'm getting crash:
>
> (gdb) bt
> #0 0xf7673f60 in krb5_principal_compare_flags (context=0xa449930,
> princ1=0x0, princ2=0xa444ab0, flags=0) at princ_comp.c:108
> #1 0xf7674183 in krb5_principal_compare (context=0xa449930, princ1=0x0,
> princ2=0xa444ab0) at princ_comp.c:169
> #2 0xf764f1ec in standard_fields_match (context=0xa449930, whichfields=0,
> mcreds=0xfff48dc8, creds=0xfff48ba0) at cc_retr.c:67
You need to set a client principal in the matching cred. Heimdal allows
searching for just the server principal, but MIT's library does not.
> should i use code = krb5int_construct_matching_creds(context, options,
> in_creds, &mcreds, &fields); before calling retrive from cache.
That's an internal function (as indicated by the "int" in the prefix),
so you can't use it in an application.
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos