summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-09-10 10:18:02 -0700
committerJeremy Allison <jra@samba.org>2008-09-10 10:18:02 -0700
commit3978317af0c265d317258f5f6a04436100437a8c (patch)
tree3c4813a11d071eb443d5cc13d547e591578cb513 /source3/libsmb
parent5b54781e1c63be1f63b601f74cf8d4cc5eb788d1 (diff)
downloadsamba-3978317af0c265d317258f5f6a04436100437a8c.tar.gz
samba-3978317af0c265d317258f5f6a04436100437a8c.tar.bz2
samba-3978317af0c265d317258f5f6a04436100437a8c.zip
Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy. (This used to be commit a59bd0e4854117a8646f4d388a0f7285362d5ba2)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clikrb5.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index f940081072..b8afb57977 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -749,9 +749,21 @@ static krb5_error_code ads_krb5_mk_req(krb5_context context,
ccache,
&in_data );
if (retval) {
- DEBUG( 1, ("ads_krb5_get_fwd_ticket failed (%s)\n",
+ DEBUG( 3, ("ads_krb5_get_fwd_ticket failed (%s)\n",
error_message( retval ) ) );
- goto cleanup_creds;
+
+ /*
+ * This is not fatal. Delete the *auth_context and continue
+ * with krb5_mk_req_extended to get a non-forwardable ticket.
+ */
+
+ if (in_data.data) {
+ free( in_data.data );
+ in_data.data = NULL;
+ in_data.length = 0;
+ }
+ krb5_auth_con_free(context, *auth_context);
+ *auth_context = NULL;
}
}
#endif