Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary X-RT-Original-Encoding: iso-8859-1 Content-Length: 864 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