[krbdev.mit.edu #3502] Cannot acquire initiator cred using gss_acquire_cred with explicit name on Windows

Valerie Peng via RT rt-comment at krbdev.mit.edu
Mon Mar 13 18:50:39 EST 2006


I corrected the length of name_val so that it uses strlen(..) which
should not include the trailing null, but the result is the same.

Maybe you could send me the src of your gss_acquire_cred_test
so I can compare and check.

Thanks!
Valerie

Jeffrey Altman via RT wrote:
> Taking your code snippet I re-wrote it in C which I have attached to the
> ticket.  The output of the resulting program is as follows:
> 
> [C:\temp]gss_acquire_cred_test.exe jaltman
> 
> [C:\temp]gss_acquire_cred_test.exe foo
> GSS-API error client's gss_acquire_cred: Miscellaneous failure
> GSS-API error client's gss_acquire_cred: Matching credential not found
> 
> [C:\temp]gss_acquire_cred_test.exe jaltman at ATHENA.MIT.EDU
> 
> [C:\temp]gss_acquire_cred_test.exe jaltman at JPL.NASA.GOV
> 
> [C:\temp]gss_acquire_cred_test.exe jaltman at JPL.NASA.GO
> GSS-API error client's gss_acquire_cred: Miscellaneous failure
> GSS-API error client's gss_acquire_cred: Matching credential not found
> 
> 
> I believe that you have a typo in your code because the length of the
> name_val should not include the trailing NUL.
> 
> I can find no error in the current implementation of the gssapi library.
> 
> Jeffrey Altman





More information about the krb5-bugs mailing list