Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 172863 Details for
Bug 231396
net-fs/nfs-utils - heimdal compatibility
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
nfs-utils-1.1.4-heimdal_functions.patch
nfs-utils-1.1.4-heimdal_functions.patch (text/plain), 1.53 KB, created by
Honza Macháček
on 2008-11-22 14:45:08 UTC
(
hide
)
Description:
nfs-utils-1.1.4-heimdal_functions.patch
Filename:
MIME Type:
Creator:
Honza Macháček
Created:
2008-11-22 14:45:08 UTC
Size:
1.53 KB
patch
obsolete
>diff -Naur nfs-utils-1.1.4/utils/gssd/krb5_util.c nfs-utils-1.1.4-r1/utils/gssd/krb5_util.c >--- utils/gssd/krb5_util.c 2008-10-17 14:20:09.000000000 +0000 >+++ utils/gssd/krb5_util.c 2008-11-22 13:52:42.000000000 +0000 >@@ -927,9 +927,37 @@ > { > krb5_error_code ret; > krb5_creds creds; >- krb5_cc_cursor cur; > int found = 0; > >+#ifdef HAVE_HEIMDAL >+ krb5_creds pattern; >+ krb5_realm *client_realm; >+ >+ krb5_cc_clear_mcred(&pattern); >+ >+ client_realm = krb5_princ_realm (context, principal); >+ >+ ret = krb5_make_principal (context, &pattern.server, >+ *client_realm, KRB5_TGS_NAME, *client_realm, >+ NULL); >+ if (ret) >+ krb5_err (context, 1, ret, "krb5_make_principal"); >+ pattern.client = principal; >+ >+ ret = krb5_cc_retrieve_cred (context, ccache, 0, &pattern, &creds); >+ krb5_free_principal (context, pattern.server); >+ if (ret) { >+ if (ret == KRB5_CC_END) >+ return 1; >+ krb5_err (context, 1, ret, "krb5_cc_retrieve_cred"); >+ } >+ >+ found = creds.times.endtime > time(NULL); >+ >+ krb5_free_cred_contents (context, &creds); >+#else >+ krb5_cc_cursor cur; >+ > ret = krb5_cc_start_seq_get(context, ccache, &cur); > if (ret) > return 0; >@@ -949,6 +977,7 @@ > krb5_free_cred_contents(context, &creds); > } > krb5_cc_end_seq_get(context, ccache, &cur); >+#endif > > return found; > } >@@ -995,6 +1024,9 @@ > } > krb5_free_principal(context, principal); > err_princ: >+#ifdef HAVE_HEIMDAL >+#define KRB5_TC_OPENCLOSE 0x00000001 >+#endif > krb5_cc_set_flags(context, ccache, KRB5_TC_OPENCLOSE); > krb5_cc_close(context, ccache); > err_cache:
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231396
:
160028
|
160032
|
160033
|
160035
| 172863 |
172865
|
180673