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

Jeffrey Altman via RT rt-comment at krbdev.mit.edu
Fri Mar 10 21:54:24 EST 2006


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