summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-09-10 10:16:42 -0700
committerKarolin Seeger <kseeger@samba.org>2008-09-11 13:15:56 +0200
commite48f855fd72dc150d49641a13bb2a72721e006a5 (patch)
tree3ea3d9da08164bcabf850a821ee3f53e29e9bf1e
parent627832e5f7ed6c82c227a55a9fdcc5bff25242ff (diff)
downloadsamba-e48f855fd72dc150d49641a13bb2a72721e006a5.tar.gz
Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy. (cherry picked from commit 738729cad0b88a2f453d61d38e1088003afd0a9e)
-rw-r--r--source/libsmb/clikrb5.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c
index a7ca24f7a2e..66dd5f61029 100644
--- a/source/libsmb/clikrb5.c
+++ b/source/libsmb/clikrb5.c
@@ -743,16 +743,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", error_message( retval ) ) );
- goto cleanup_creds;
- }
+ DEBUG( 3, ("ads_krb5_get_fwd_ticket failed (%s)\n", error_message( retval ) ) );
- if (retval) {
- DEBUG( 1, ("krb5_auth_con_set_req_cksumtype 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