Check if there is initial creds with _gss_ntlm_get_user_cred().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22165 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-12-04 21:44:26 +00:00
parent a650e10c34
commit 0a9f8b895b

View File

@@ -79,9 +79,16 @@ OM_uint32 _gss_ntlm_acquire_cred
*min_stat = 0;
}
}
if (cred_usage == GSS_C_BOTH || cred_usage == GSS_C_INITIATE) {
/* check if cred exists XXX */
gss_cred_id_t gcred;
ntlm_cred cred;
*min_stat = _gss_ntlm_get_user_cred(name->domain, &cred);
if (*min_stat)
return GSS_S_FAILURE;
gcred = (gss_cred_id_t)cred;
_gss_ntlm_release_cred(NULL, &gcred);
}
return (GSS_S_COMPLETE);