Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by krbdev.mit.edu (8.9.3p2) with ESMTP id SAA18787; Mon, 13 Mar 2006 18:50:35 -0500 (EST) Received: from phys-d3-ha21sca-2 ([129.145.155.165]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k2DNoTQj026958 for ; Mon, 13 Mar 2006 16:50:29 -0700 (MST) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IW300B01BJO4G@ha21sca-mail1.sfbay.sun.com> (original mail from Yu-Ching.Peng@Sun.COM) for rt-comment@krbdev.mit.edu; Mon, 13 Mar 2006 15:51:30 -0800 (PST) Received: from [10.5.18.28] (shimmer.SFBay.Sun.COM [10.5.18.28]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IW300M4GBLU1K@ha21sca-mail1.sfbay.sun.com> for rt-comment@krbdev.mit.edu; Mon, 13 Mar 2006 15:51:30 -0800 (PST) Date: Mon, 13 Mar 2006 15:49:43 -0800 From: Valerie Peng Subject: Re: [krbdev.mit.edu #3502] Cannot acquire initiator cred using gss_acquire_cred with explicit name on Windows In-Reply-To: To: rt-comment@krbdev.mit.edu Reply-To: Yu-Ching.Peng@Sun.COM Message-Id: <44160517.1020303@Sun.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) References: RT-Send-Cc: X-RT-Original-Encoding: iso-8859-1 Content-Length: 1186 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