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@ATHENA.MIT.EDU > > [C:\temp]gss_acquire_cred_test.exe jaltman@JPL.NASA.GOV > > [C:\temp]gss_acquire_cred_test.exe jaltman@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