[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: SASL EXTERNAL via ldapi





--On Wednesday, November 23, 2005 12:15 PM -0500 "James F. Hranicky" <jfh@cise.ufl.edu> wrote:

On Tue, 22 Nov 2005 13:56:54 -0500
"James F. Hranicky" <jfh@cise.ufl.edu> wrote:

On Tue, 22 Nov 2005 13:26:07 -0500
"James F. Hranicky" <jfh@cise.ufl.edu> wrote:

> I gdb'd through the SASL code and it appeared to return SASL_OK to
> ldap_int_sasl_bind() . I guess I'll compile openldap for debugging
> and see what I can see.

I just realized I never mentioned my platform:

	OS		:	Sol 10 x86
	openldap	:	2.3.12
	sasl		:	2.1.21
	BDB		:	4.2.52+patches
	compiler	:	SUNWspro, gcc 3.4.4

Jim


I believe I've found it. There's a typo in the files

	libraries/liblutil/getpeereid.c
	libraries/libldap/os-local.c

The macro

	HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS

needs to be

	HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN

Now SASL/EXTERNAL appears to work again on Sol 10. The patch is attached.

Sol 10 now supports getpeerucred() -- I don't know if it would be better
to define getpeereid in terms of that or not.

Patches should generally be submitted to the OpenLDAP ITS system. Patches mailed to the openldap-software list may be missed or simply thought of as commentary. Although I do see that Kurt has already committed this patch to HEAD. ;)


--Quanah


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html