From 3b1956f9d2ad36dfc8c10a4ce22ee05a138bd2f9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 29 Jun 2007 09:54:39 +0000 Subject: r23650: Fix remaining callers of krb5_kt_default(). Guenther (This used to be commit b9d7a2962a472afb0c6b8e3ac5c2c819d4af2b39) --- source3/libads/kerberos_keytab.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/libads') diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index d86b902ad5..7847b689c2 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -546,10 +546,11 @@ int ads_keytab_create_default(ADS_STRUCT *ads) DEBUG(1,("ads_keytab_create_default: could not krb5_init_context: %s\n",error_message(ret))); return ret; } - ret = krb5_kt_default(context, &keytab); + + ret = smb_krb5_open_keytab(context, NULL, True, &keytab); if (ret) { - DEBUG(1,("ads_keytab_create_default: krb5_kt_default failed (%s)\n",error_message(ret))); - goto done; + DEBUG(1,("ads_keytab_create_default: smb_krb5_open_keytab failed (%s)\n", error_message(ret))); + goto out; } ret = krb5_kt_start_seq_get(context, keytab, &cursor); -- cgit