The Samba-Bugzilla – Attachment 465 Details for
Bug 1208
winbind in ads-security fails to reconnect (Invalid credentials)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
svn diff against 3_0 for checking and renewal of service tickets in cli_krb5_get_ticket (ads_krb5_mk_req)
expired-tickets.diff (text/plain), 1.28 KB, created by
Guenther Deschner
on 2004-04-08 07:47:35 UTC
(
hide
)
Description:
svn diff against 3_0 for checking and renewal of service tickets in cli_krb5_get_ticket (ads_krb5_mk_req)
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2004-04-08 07:47:35 UTC
Size:
1.28 KB
patch
obsolete
>Index: source/libsmb/clikrb5.c >=================================================================== >--- source/libsmb/clikrb5.c (revision 119) >+++ source/libsmb/clikrb5.c (working copy) >@@ -270,6 +270,7 @@ > goto cleanup_creds; > } > >+get_ticket: > if ((retval = krb5_get_credentials(context, 0, > ccache, &creds, &credsp))) { > DEBUG(1,("krb5_get_credentials failed for %s (%s)\n", >@@ -285,6 +286,22 @@ > krb5_set_real_time(context, t + time_offset + 1, 0); > } > >+ /* cope with expired tickets */ >+ if ((unsigned)credsp->times.endtime < time(NULL)) { >+ DEBUG(3,("Ticket (%s) in ccache (%s) has expired (%s - %d). Renewing.\n", >+ principal, krb5_cc_default_name(context), >+ http_timestring((unsigned)credsp->times.endtime), (unsigned)credsp->times.endtime)); >+ if ((retval = krb5_cc_remove_cred(context, ccache, 0, credsp))) { >+ DEBUG(1,("krb5_cc_remove_cred failed for %s (%s)\n", >+ principal, error_message(retval))); >+ } >+ goto get_ticket; >+ } >+ >+ DEBUG(10,("Ticket (%s) in ccache (%s) is valid until: (%s - %d)\n", >+ principal, krb5_cc_default_name(context), >+ http_timestring((unsigned)credsp->times.endtime), (unsigned)credsp->times.endtime)); >+ > in_data.length = 0; > retval = krb5_mk_req_extended(context, auth_context, ap_req_options, > &in_data, credsp, outbuf);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1208
:
452
|
457
|
465
|
466
|
467
|
484