The Samba-Bugzilla – Attachment 467 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]
Patch for heimdal-0.6.1 to implement krb5_cc_remove_cred for files-ccaches (fcc_remove_cred) - provided by Sumit Bose
krb5_cc_remove_cred.diff (text/plain), 1.18 KB, created by
Guenther Deschner
on 2004-04-14 08:47:47 UTC
(
hide
)
Description:
Patch for heimdal-0.6.1 to implement krb5_cc_remove_cred for files-ccaches (fcc_remove_cred) - provided by Sumit Bose
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2004-04-14 08:47:47 UTC
Size:
1.18 KB
patch
obsolete
>--- lib/krb5/fcache.c 2004-03-10 14:30:59.000000000 +0100 >+++ lib/krb5/fcache.c 2004-04-14 16:59:56.581797648 +0200 >@@ -618,7 +618,45 @@ > krb5_flags which, > krb5_creds *cred) > { >- return 0; /* XXX */ >+ int i=0; >+ int c=0; >+ int ret=0; >+ >+ krb5_cc_cursor cursor; >+ krb5_creds current_cred; >+ krb5_creds *buffer=NULL; >+ krb5_principal principal; >+ >+ fcc_get_first(context, id, &cursor); >+ do { >+ if( (ret=fcc_get_next(context, id, &cursor, ¤t_cred)) == 0 ) { >+ if(!krb5_compare_creds(context, which, cred, ¤t_cred)) { >+ buffer = (krb5_creds *) realloc(buffer,sizeof(current_cred)*(c+1)); >+ if (buffer==NULL) goto cleanup; >+ memcpy(&buffer[c++],¤t_cred,sizeof(current_cred)); >+ } >+ } else { >+ if ( ret != KRB5_CC_END ) goto cleanup; >+ } >+ } while (ret != KRB5_CC_END); >+ >+ fcc_end_get(context, id, &cursor); >+ fcc_get_principal(context, id, &principal); >+ >+ fcc_destroy(context, id); >+ >+ fcc_initialize(context, id, principal); >+ >+ for(i=0;i<c;i++) { >+ fcc_store_cred(context, id, &buffer[i]); >+ } >+ >+ ret=0; >+ >+ cleanup: >+ if (cursor) fcc_end_get(context, id, &cursor); >+ free(buffer); >+ return ret; > } > > static krb5_error_code
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