[17562] in Kerberos_V5_Development
help with gss_acquire_cred
daemon@ATHENA.MIT.EDU (Arthur Tsoi)
Fri Apr 6 14:22:45 2012
From: Arthur Tsoi <Arthur.Tsoi@marklogic.com>
To: "krbdev@mit.edu" <krbdev@mit.edu>
Date: Thu, 5 Apr 2012 11:11:50 -0700
Message-ID: <EB42045A1F00224E93B82E949EC6675E16AE8E9DE7@EXCHG-BE.marklogic.com>
Content-Language: en-US
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
I'm using gss on linux (fedora) and using mit kerberos.
I tried to get the cred from a keytab but got the following error:
GSS-API error gss_acquire_cred: Unspecified GSS failure. Minor code may provide more information
GSS-API error gss_acquire_cred: Key table entry not found
Here is the code:
maj_stat = gss_acquire_cred(&min_stat, server_name, 0,
GSS_C_NO_OID_SET, GSS_C_ACCEPT,
&server_creds, NULL, NULL);
if (maj_stat != GSS_S_COMPLETE) {
display_status("gss_acquire_cred", maj_stat, min_stat);
return -1;
}
I verified that the service is in the keytab file.
What is the problem? Do I need to call any krb5 api before gss_acquire_cred?
Thanks,
Arthur
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev