On Mon, Feb 06, 2012 at 10:45:24AM +0100, Remco wrote:
> modify the plugins/gssapi.c file and use 'make update-patches' to create the
> file patches/patch-plugins_gssapi_c:
Thanks for the heads up.
I will commit this as soon as the ports tree is unlocked.
> $OpenBSD$
> --- plugins/gssapi.c.orig Mon Feb 6 09:30:58 2012
> +++ plugins/gssapi.c Mon Feb 6 09:31:47 2012
> @@ -370,7 +370,7 @@ sasl_gss_encode(void *context, const struct iovec *inv
> }
>
> if (output_token->value && output) {
> - unsigned char * p = (unsigned char *) text->encode_buf;
> + unsigned char * p;
>
> ret = _plug_buf_alloc(text->utils,
> &(text->encode_buf),
> @@ -384,6 +384,8 @@ sasl_gss_encode(void *context, const struct iovec *inv
> return ret;
> }
>
> + p = (unsigned char *) text->encode_buf;
> +
> p[0] = (output_token->length>>24) & 0xFF;
> p[1] = (output_token->length>>16) & 0xFF;
> p[2] = (output_token->length>>8) & 0xFF;
>
> updated the package revision:
> ? patches/patch-plugins_gssapi_c
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/security/cyrus-sasl2/Makefile,v
> retrieving revision 1.64
> diff -u -r1.64 Makefile
> --- Makefile 21 Dec 2011 14:36:15 -0000 1.64
> +++ Makefile 6 Feb 2012 09:12:42 -0000
> @@ -20,7 +20,7 @@
>
> CATEGORIES= security
>
> -REVISION= 1
> +REVISION= 2
>
> HOMEPAGE= http://www.cyrusimap.org/
>
>
> in directory ~/ports/security/cyrus-sasl2, do:
> $ make clean
> $ make configure
> $ make
> $ make fake
> $ make package
> $ make update
>
> resulting in a working ldapwhoami:
> $ ldapwhoami
> SASL/GSSAPI authentication started
> SASL username: [email protected]
> SASL SSF: 56
> SASL data security layer installed.
> dn:uid=remco,cn=gssapi,cn=auth
>
--
Antoine