diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-04-28 07:39:35 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-04-28 07:39:35 (GMT) |
commit | 1f16a5e0fc0039a306726fb56eee75e5699c9db0 (patch) | |
tree | 09bec2c8e61afe32158399e7ab62c078344a3b57 /abs/extra-testing/autofs/heimdal.patch | |
parent | b4d05eea2684f73c8f7c3b2bfa06a4da78827c8a (diff) | |
download | linhes_pkgbuild-1f16a5e0fc0039a306726fb56eee75e5699c9db0.zip linhes_pkgbuild-1f16a5e0fc0039a306726fb56eee75e5699c9db0.tar.gz linhes_pkgbuild-1f16a5e0fc0039a306726fb56eee75e5699c9db0.tar.bz2 |
Latest autofs, closes FS# 333.
Diffstat (limited to 'abs/extra-testing/autofs/heimdal.patch')
-rw-r--r-- | abs/extra-testing/autofs/heimdal.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/abs/extra-testing/autofs/heimdal.patch b/abs/extra-testing/autofs/heimdal.patch new file mode 100644 index 0000000..c49b1fd --- /dev/null +++ b/abs/extra-testing/autofs/heimdal.patch @@ -0,0 +1,34 @@ +--- autofs-5.0.4/modules/cyrus-sasl.c~ 2009-01-11 17:18:55.000000000 +0100 ++++ autofs-5.0.4/modules/cyrus-sasl.c 2009-01-11 17:18:55.000000000 +0100 +@@ -66,6 +66,15 @@ + #endif + #endif + ++/** ++ * The type of a principal is different for MIT Krb5 and Heimdal. ++ * These macros are provided by Heimdal, and introduced here for MIT. ++ */ ++#ifndef krb5_realm_length ++#define krb5_realm_length(r) ((r).length) ++#define krb5_realm_data(r) ((r).data) ++#endif ++ + /* + * Once a krb5 credentials cache is setup, we need to set the KRB5CCNAME + * environment variable so that the library knows where to find it. +@@ -451,11 +460,11 @@ + + /* setup a principal for the ticket granting service */ + ret = krb5_build_principal_ext(ctxt->krb5ctxt, &tgs_princ, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->length, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->data, ++ krb5_realm_length(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), ++ krb5_realm_data(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), + strlen(KRB5_TGS_NAME), KRB5_TGS_NAME, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->length, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->data, ++ krb5_realm_length(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), ++ krb5_realm_data(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), + 0); + if (ret) { + error(logopt, |