Re: [Perlgssapi-developer] released GSSAPI-0.17
Brought to you by:
achimgrolms
From: Merijn B. <me...@il...> - 2006-02-13 15:52:24
|
Quoting Merijn Broeren (me...@il...): > Quoting Merijn Broeren (me...@il...): > > > > I'll investigate the source of mitkfw. It is a slightly different code > > base, but in principle is a fork of the normal mit C code for unix. > > > Looks like it is an acknowledged problem, see the thread starting here : > > http://mailman.mit.edu/pipermail/krbdev/2005-February/003193.html > > the first mails purports to have a solution (that I have not tried yet) > and later in the thread the symbols are mentioned as missing and to be > exported in a later version. That is not out yet as far as I know. > Patch like this makes it all work: diff -u -r GSSAPI-0.17/xs/OID.xs GSSAPI-0.17.patched/xs/OID.xs --- GSSAPI-0.17/xs/OID.xs Sun Feb 12 10:58:51 2006 +++ GSSAPI-0.17.patched/xs/OID.xs Mon Feb 13 10:39:10 2006 @@ -126,14 +126,24 @@ GSSAPI::OID_const gss_nt_krb5_name() CODE: - RETVAL = GSS_KRB5_NT_USER_NAME; +#if !defined(WIN32) + RETVAL = gss_nt_krb5_name; +#endif +#if defined(WIN32) + croak("gss_nt_krb5_name() is not exported in windows API!"); +#endif OUTPUT: RETVAL GSSAPI::OID_const gss_nt_krb5_principal() CODE: - RETVAL = GSS_KRB5_NT_PRINCIPAL_NAME; +#if !defined(WIN32) + RETVAL = gss_nt_krb5_principal; +#endif +#if defined(WIN32) + croak("gss_nt_krb5_principal() is not exported in windows API!"); +#endif OUTPUT: RETVAL but that is a cop out ofcourse. In MIT KfW 3.0 this might be fixed, I'm using 2.6.5 the previous release. We'll install this hopefully and I will check the code then. So this patch can just be documented in the INSTALL. I'd rather key this off a version define then WIN32, but I don't see anything suitable in gssapi*.h to use. Mmmmm. Cheers, -- Merijn Broeren | Sometime in the middle ages, God got fed up with us Software Geek | and put earth at sol.milky-way.univ in his kill-file. | Pray all you want, it just gets junked. |