diff options
author | Jeremy Allison <jra@samba.org> | 2008-09-10 10:17:21 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-09-11 13:59:22 +0200 |
commit | 2816202125ca2173bfa6fa640f2c83104a1047d5 (patch) | |
tree | d3f866011ed7ebd19df75bed01409494aad5894c /source/libsmb | |
parent | 40a1958b945819a9d53d5b3de2340b789957ff75 (diff) | |
download | samba-2816202125ca2173bfa6fa640f2c83104a1047d5.tar.gz samba-2816202125ca2173bfa6fa640f2c83104a1047d5.tar.xz samba-2816202125ca2173bfa6fa640f2c83104a1047d5.zip |
Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy.
(cherry picked from commit 55d43c04b47855e40b9ceeec2bc6f0deb3bf39d0)
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/clikrb5.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index f940081072a..b8afb579778 100644 --- a/source/libsmb/clikrb5.c +++ b/source/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 |