1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3-kerberos: use smb_krb5_get_credentials in ads_krb5_mk_req.

Guenther
This commit is contained in:
Günther Deschner 2009-11-05 17:49:00 +01:00
parent 60bf0eb607
commit bb01aae1b9

View File

@ -709,10 +709,13 @@ static krb5_error_code ads_krb5_mk_req(krb5_context context,
while (!creds_ready && (i < maxtries)) {
if ((retval = krb5_get_credentials(context, 0, ccache,
&creds, &credsp))) {
DEBUG(1,("ads_krb5_mk_req: krb5_get_credentials failed for %s (%s)\n",
principal, error_message(retval)));
if ((retval = smb_krb5_get_credentials(context, ccache,
creds.client,
creds.server,
NULL,
&credsp))) {
DEBUG(1,("ads_krb5_mk_req: smb_krb5_get_credentials failed for %s (%s)\n",
principal, error_message(retval)));
goto cleanup_creds;
}