diff options
author | Gordon Ross <gordon.w.ross@gmail.com> | 2011-05-06 16:00:08 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-07 02:20:14 +0200 |
commit | ac25835ab7b76226bd59fec9ffef46d5c5817d54 (patch) | |
tree | 5739b27dd5f2d6113fead49d5db498d1d1ba18e0 /auth | |
parent | f7b3909103a0acd5ee0426b85112f2c9ed4e7730 (diff) | |
download | samba-ac25835ab7b76226bd59fec9ffef46d5c5817d54.tar.gz samba-ac25835ab7b76226bd59fec9ffef46d5c5817d54.tar.bz2 samba-ac25835ab7b76226bd59fec9ffef46d5c5817d54.zip |
Fix Samba3 on OpenIndiana.
I'd like Samba to use the native OpenLDAP and MIT Kerberos libs.
Attached are some patches to do that. (relative to git master)
It does not build for me without these.
(OpenIndiana is an off-shoot of OpenSolaris See http://www.openindiana.org)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May 7 02:20:14 CEST 2011 on sn-devel-104
Diffstat (limited to 'auth')
-rw-r--r-- | auth/kerberos/gssapi_pac.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/auth/kerberos/gssapi_pac.c b/auth/kerberos/gssapi_pac.c index d89a649ff2..e115cfe85c 100644 --- a/auth/kerberos/gssapi_pac.c +++ b/auth/kerberos/gssapi_pac.c @@ -23,6 +23,30 @@ #include "libcli/auth/krb5_wrap.h" +#if 0 +/* FIXME - need proper configure/waf test + * to determine if gss_mech_krb5 and friends + * exist. JRA. + */ +/* + * These are not exported by Solaris -lkrb5 + * Maybe move to libreplace somewhere? + */ +static const gss_OID_desc krb5_gss_oid_array[] = { + /* this is the official, rfc-specified OID */ + { 9, "\052\206\110\206\367\022\001\002\002" }, + /* this is the pre-RFC mech OID */ + { 5, "\053\005\001\005\002" }, + /* this is the unofficial, incorrect mech OID emitted by MS */ + { 9, "\052\206\110\202\367\022\001\002\002" }, + { 0, 0 } +}; + +const gss_OID_desc * const gss_mech_krb5 = krb5_gss_oid_array+0; +const gss_OID_desc * const gss_mech_krb5_old = krb5_gss_oid_array+1; +const gss_OID_desc * const gss_mech_krb5_wrong = krb5_gss_oid_array+2; +#endif + /* The Heimdal OID for getting the PAC */ #define EXTRACT_PAC_AUTHZ_DATA_FROM_SEC_CONTEXT_OID_LENGTH 8 /* EXTRACTION OID AUTHZ ID */ |